Files
chuanqi-server-instance/docker-compose.yml
root f3c1acce25 build(db): 更新数据库服务镜像
- 将 db 服务的镜像从阿里云容器镜像服务中的 kubbo/chuanqi-os:latest 更新为本地镜像 chuanqi-server-base:latest
- 此更改旨在使用本地构建的镜像,可能提高部署速度并减少对外部服务的依赖
2025-04-16 12:11:16 +08:00

45 lines
1.2 KiB
YAML
Executable File

version: '3.8'
services:
db:
image: chuanqi-server-base:latest
container_name: chuanqi-server-db
stdin_open: true
volumes:
- ./DBServer:/data/server/s1/DBServer
- ./wch:/etc/yum/wch
entrypoint: "/data/server/s1/DBServer/start.sh"
network_mode: "host"
restart: unless-stopped
environment:
TZ: Asia/Shanghai
logic:
image: registry.cn-hangzhou.aliyuncs.com/kubbo/chuanqi-os:latest
container_name: chuanqi-server-logic
depends_on:
- db # 等待db服务启动
stdin_open: true
volumes:
- ./LogicServer:/data/server/s1/LogicServer
- ./wch:/etc/yum/wch
entrypoint: "/data/server/s1/LogicServer/start.sh"
network_mode: "host"
restart: unless-stopped
environment:
TZ: Asia/Shanghai
gate:
image: registry.cn-hangzhou.aliyuncs.com/kubbo/chuanqi-os:latest
container_name: chuanqi-server-gate
depends_on:
- logic # 等待logic服务启动
stdin_open: true
volumes:
- ./Gateway:/data/server/s1/Gateway
- ./wch:/etc/yum/wch
entrypoint: "/data/server/s1/Gateway/start.sh"
network_mode: "host"
restart: unless-stopped
environment:
TZ: Asia/Shanghai