代码拉取完成,页面将自动刷新
同步操作将从 Token/EarthChat 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
services:
postgres:
image: postgres:15.3-alpine3.18
restart: always
container_name: postgres
ports:
- 5432:5432
networks:
- chat
environment:
POSTGRES_USER: token
POSTGRES_PASSWORD: dd666666
TZ: Asia/Shanghai
POSTGRES_DB: Chat
volumes:
- ./postgres_data:/var/lib/postgresql/data
redis:
image: redis:alpine3.16
restart: always
container_name: redis
ports:
- 6379:6379
networks:
- chat
command: redis-server --appendonly yes
volumes:
- ./redisdata:/data
nginx:
image: nginx:stable-alpine
restart: always
container_name: nginx
networks:
- chat
ports:
- 1080:80
volumes:
- ./main.conf:/etc/nginx/conf.d/default.conf
rabbitmq:
restart: always # 开机自启
image: rabbitmq:3.11-management # RabbitMQ使用的镜像
container_name: rabbitmq # docker名称
hostname: rabbit
ports:
- 5672:5672 # 只是RabbitMQ SDK使用的端口
- 15672:15672 # 这是RabbitMQ管理界面使用的端口
environment:
TZ: Asia/Shanghai # 设置RabbitMQ时区
RABBITMQ_DEFAULT_USER: token # rabbitMQ账号
RABBITMQ_DEFAULT_PASS: dd666666 # rabbitMQ密码
volumes:
- ./data:/var/lib/rabbitmq
chat-web:
build:
context: ./web
dockerfile: ./Dockerfile
container_name: chat-web
image: registry.cn-shenzhen.aliyuncs.com/gotrays/chat-web
restart: always
depends_on:
- redis
- postgres
networks:
- chat
chat-api:
build:
context: ./
dockerfile: ./src/Chat.Service/Dockerfile
container_name: chat-api
image: registry.cn-shenzhen.aliyuncs.com/gotrays/chat-api
environment:
SQLTYPE: pgsql
restart: always
depends_on:
- redis
- postgres
networks:
- chat
chat-semantic-server:
build:
context: ./
dockerfile: ./src/assistant/Chat.SemanticServer/Dockerfile
container_name: chat-semantic-server
image: registry.cn-shenzhen.aliyuncs.com/gotrays/chat-api
restart: always
depends_on:
- redis
- postgres
networks:
- chat
networks:
chat:
driver: bridge
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。