根据 chat 示例创建 game-server,支持分布式部署、域名访问、数据库连接和基础使用

This commit is contained in:
liangtongchuan
2020-08-15 20:34:31 +08:00
parent e52a829567
commit 8ce0dc040f
36 changed files with 3165 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
version: '3'
services:
game-server:
container_name: "zyz_game_server"
build: ../game-server
# depends_on:
# - "mongo"
# - "redis"
volumes:
- "$PWD/../game-server:/game-server"
ports:
- "3050:3050"
- "3051:3051"
- "3052:3052"
- "6050:6050"
- "6051:6051"
- "6052:6052"
- "3014:3014"
command: sh ./startGameServer.sh #使用 shell脚本启动游戏服务器