Files
hk4e/docker-compose.yaml
2023-02-03 19:19:18 +08:00

145 lines
3.8 KiB
YAML

version: '3'
services:
node_services:
restart: always
image: flswld/node:1.0.0
container_name: node
environment:
TZ: Asia/Shanghai
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- /usr/share/zoneinfo:/usr/share/zoneinfo
- ./node/bin/application.toml:/node/application.toml
deploy:
resources:
limits:
cpus: '1.00'
memory: 128M
dispatch_services:
restart: always
image: flswld/dispatch:1.0.0
container_name: dispatch
ports:
- "8080:8080/tcp"
environment:
TZ: Asia/Shanghai
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- /usr/share/zoneinfo:/usr/share/zoneinfo
- ./dispatch/bin/application.toml:/dispatch/application.toml
- ./dispatch/bin/key:/dispatch/key
- ./dispatch/bin/static:/dispatch/static
depends_on:
- node_services
deploy:
resources:
limits:
cpus: '1.00'
memory: 128M
gate_services:
restart: always
image: flswld/gate:1.0.0
container_name: gate
ports:
- "22222:22222/udp"
- "33333:33333/tcp"
environment:
TZ: Asia/Shanghai
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- /usr/share/zoneinfo:/usr/share/zoneinfo
- ./gate/bin/application.toml:/gate/application.toml
- ./gate/bin/key:/gate/key
depends_on:
- dispatch_services
deploy:
resources:
limits:
cpus: '4.00'
memory: 1024M
fight_services:
restart: always
image: flswld/fight:1.0.0
container_name: fight
environment:
TZ: Asia/Shanghai
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- /usr/share/zoneinfo:/usr/share/zoneinfo
- ./fight/bin/application.toml:/fight/application.toml
depends_on:
- gate_services
deploy:
resources:
limits:
cpus: '1.00'
memory: 128M
pathfinding_services:
restart: always
image: flswld/pathfinding:1.0.0
container_name: pathfinding
environment:
TZ: Asia/Shanghai
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- /usr/share/zoneinfo:/usr/share/zoneinfo
- ./pathfinding/bin/application.toml:/pathfinding/application.toml
depends_on:
- fight_services
deploy:
resources:
limits:
cpus: '4.00'
memory: 1024M
gs_services:
restart: always
image: flswld/gs:1.0.0
container_name: gs
environment:
TZ: Asia/Shanghai
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- /usr/share/zoneinfo:/usr/share/zoneinfo
- ./gs/bin/application.toml:/gs/application.toml
- ../gdconf/game_data_config:/gs/game_data_config
depends_on:
- pathfinding_services
deploy:
resources:
limits:
cpus: '4.00'
memory: 4096M
gm_services:
restart: always
image: flswld/gm:1.0.0
container_name: gm
ports:
- "9001:9001/tcp"
environment:
TZ: Asia/Shanghai
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- /usr/share/zoneinfo:/usr/share/zoneinfo
- ./gm/bin/application.toml:/gm/application.toml
depends_on:
- gs_services
deploy:
resources:
limits:
cpus: '1.00'
memory: 128M