代码拉取完成,页面将自动刷新
version: '3'
services:
db_server:
image: mysql:${MYSQL_IMAGE_VERSION}
restart: always
environment:
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
TZ: ${TIME_ZONE}
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/sqls:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
logging:
driver: "json-file"
options:
max-size: "100M"
max-file: "3"
container_name: db_server
hostname: db_server
game_server:
image: liuguangw/game_server:latest
restart: always
volumes:
- ./home:/home
working_dir: /home
environment:
TZ: ${TIME_ZONE}
DB_PASSWORD: "${DB_PASSWORD}"
GAME_SERVER_IP: ${GAME_SERVER_IP}
GAME_SERVER_PORT: ${GAME_SERVER_PORT}
SMU_INTERVAL: ${SMU_INTERVAL}
DATA_INTERVAL: ${DATA_INTERVAL}
WITH_GAME_LOG: ${WITH_GAME_LOG}
BILLING_SERVER_IP: ${BILLING_SERVER_IP}
BILLING_SERVER_PORT: ${BILLING_SERVER_PORT}
ports:
- "${GAME_SERVER_LOGIN_PORT}:7384"
- "${GAME_SERVER_PORT}:${GAME_SERVER_PORT}"
logging:
driver: "json-file"
options:
max-size: "100M"
max-file: "3"
cap_add:
- ALL
privileged: true
container_name: game_server
hostname: game_server
depends_on:
- db_server
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。