Fiora 是一款开源免费的在线聊天系统
https://github.com/yinxin630/fiora
部署
创建docker网络
docker network create fiora-network
docker-compose部署
vim docker-compose.yml
version: '3'
services:
fiora_redis:
image: redis
container_name: fiora_redis
restart: always
healthcheck:
test: redis-cli -h 127.0.0.1 ping
interval: 30s
timeout: 10s
retries: 3
networks:
- fiora-network
fiora_db:
image: mongo
container_name: fiora_db
restart: always
healthcheck:
test: mongo --eval 'db.runCommand("ping").ok' localhost:27017 --quiet
interval: 30s
timeout: 10s
retries: 3
networks:
- fiora-network
fiora:
image: suisuijiang/fiora
container_name: fiora
restart: always
depends_on:
- "fiora_redis"
- "fiora_db"
ports:
- 9200:9200
environment:
- Database=mongodb://fiora_db:27017/fiora
- RedisHost=fiora_redis
networks:
- fiora-network
networks:
fiora-network:
external: true
部署
docker-compose up -d
访问
http://x.x.x.x:9200