45 lines
1.2 KiB
YAML
Executable File
45 lines
1.2 KiB
YAML
Executable File
version: '3.8'
|
|
|
|
services:
|
|
db:
|
|
image: registry.cn-hangzhou.aliyuncs.com/kubbo/chuanqi-os: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:
|
|
- ./GateServer:/data/server/s1/GateServer
|
|
- ./wch:/etc/yum/wch
|
|
entrypoint: "/data/server/s1/GateServer/start.sh"
|
|
network_mode: "host"
|
|
restart: unless-stopped
|
|
environment:
|
|
TZ: Asia/Shanghai |