72 lines
1.9 KiB
YAML
Executable File
72 lines
1.9 KiB
YAML
Executable File
version: '3.8'
|
|
|
|
services:
|
|
base:
|
|
image: chuanqi-server-base:latest
|
|
networks:
|
|
network:
|
|
ipv4_address: 172.36.10.25
|
|
stdin_open: true
|
|
# ports:
|
|
# - 10319:10319
|
|
# - 35010:35010
|
|
# - 31000:31000
|
|
# - 34000:34000
|
|
# - 5660:5660
|
|
# - 8500:8500
|
|
volumes:
|
|
- ./DBServer:/data/server/s1/DBServer
|
|
- ./wch:/etc/yum/wch
|
|
- ./buildConfig/AMServerLinux.txt:/data/server/build/AMServer/AMServerLinux.txt
|
|
- ./buildConfig/BackStageServerLinux.txt:/data/server/build/BackStageServer/BackStageServerLinux.txt
|
|
- ./buildConfig/LoggerServerLinux.txt:/data/server/build/LoggerServer/LoggerServerLinux.txt
|
|
- ./buildConfig/NameServerLinux.txt:/data/server/build/NameServer/NameServerLinux.txt
|
|
- ./buildConfig/SessionServerLinux.txt:/data/server/build/SessionServer/SessionServerLinux.txt
|
|
entrypoint: "/data/server/s1/DBServer/start.sh"
|
|
restart: unless-stopped
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
|
|
logic:
|
|
image: registry.cn-hangzhou.aliyuncs.com/kubbo/chuanqi-os:latest
|
|
networks:
|
|
- network
|
|
ports:
|
|
- 10318:10318
|
|
deploy:
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
depends_on:
|
|
- base
|
|
stdin_open: true
|
|
volumes:
|
|
- ./LogicServer:/data/server/s1/LogicServer
|
|
- ./wch:/etc/yum/wch
|
|
entrypoint: "/data/server/s1/LogicServer/start.sh"
|
|
restart: unless-stopped
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
|
|
gate:
|
|
image: registry.cn-hangzhou.aliyuncs.com/kubbo/chuanqi-os:latest
|
|
networks:
|
|
- network
|
|
ports:
|
|
- 10317:10317
|
|
depends_on:
|
|
- logic
|
|
stdin_open: true
|
|
volumes:
|
|
- ./Gateway:/data/server/s1/Gateway
|
|
- ./wch:/etc/yum/wch
|
|
entrypoint: "/data/server/s1/Gateway/start.sh"
|
|
restart: unless-stopped
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
networks:
|
|
network:
|
|
driver: bridge
|
|
ipam:
|
|
config:
|
|
- subnet: 172.36.10.0/24 |