1 Star 0 Fork 0

苏打绿茶/game_server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
流光 提交于 2021-12-10 17:00 . 重新初始化,减少仓库体积
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuzhouxz/game_server.git
git@gitee.com:xuzhouxz/game_server.git
xuzhouxz
game_server
game_server
master

搜索帮助