1 Star 0 Fork 1

Cloud / op-server-docker-v3.2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 6.32 KB
一键复制 编辑 原始数据 按行查看 历史
Cloud 提交于 2023-03-16 04:06 . add code
version: '3.6'
services:
mongodb:
restart: always
build:
context: mongo/
dockerfile: Dockerfile
image: xiaoyun461/op-mongo-v3.2
container_name: mongodb
volumes:
- ./mongo/data:/data/db
ports:
- ${MONGODB_PORT}:27017
networks:
op-v3.2:
ipv4_address: ${MONGODB_HOST}
mysql:
restart: always
build:
context: mysql/
dockerfile: Dockerfile
args:
MYSQL_USER: ${MYSQL_USER}
MYSQL_PWD: ${MYSQL_PWD}
image: xiaoyun461/op-mysql-v3.2
container_name: mysql
volumes:
# - ./mysql/config/my.cnf:/etc/my.cnf
- ./mysql/data:/var/lib/mysql
ports:
- "${MYSQL_PORT}:3306"
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_PWD}
- TZ=Asia/Shanghai
- privileged=true
networks:
op-v3.2:
ipv4_address: ${MYSQL_HOST}
redis:
restart: always
build:
context: redis/
dockerfile: Dockerfile
image: xiaoyun461/op-redis-v3.2
container_name: redis
command: redis-server /redis.conf --requirepass ${REDIS_PWD}
volumes:
- ./redis/base/redis.conf:/redis.conf
- ./redis/data:/data
ports:
- "${REDIS_PORT}:6379"
networks:
op-v3.2:
ipv4_address: ${REDIS_HOST}
nodeserver:
restart: always
# build:
# context: server/
# dockerfile: server.Dockerfile
# args:
# - SERVER_NAME=nodeserver
image: xiaoyun461/op-nodeserver:3.2
container_name: nodeserver
environment:
- SERVER_WAIT=${MYSQL_HOST}:${MYSQL_PORT}
- APP_ID=9001.3.1.1
ports:
- "20081:20081"
env_file:
- .env
networks:
op-v3.2:
ipv4_address: ${NODE_HOST}
gateserver:
restart: always
# build:
# context: server/
# dockerfile: server.Dockerfile
# args:
# - SERVER_NAME=gateserver
image: xiaoyun461/op-gateserver:3.2
container_name: gateserver
environment:
- SERVER_WAIT=${MYSQL_HOST}:${MYSQL_PORT}
- APP_ID=9001.1.1.1
ports:
- "20041:20041/udp"
env_file:
- .env
networks:
op-v3.2:
ipv4_address: ${GATE_HOST}
dbgate:
restart: always
# build:
# context: server/
# dockerfile: server.Dockerfile
# args:
# - SERVER_NAME=dbgate
image: xiaoyun461/op-dbgate:3.2
container_name: dbgate
environment:
- SERVER_WAIT=nodeserver:20081
- APP_ID=9001.4.1.1
env_file:
- .env
networks:
op-v3.2:
ipv4_address: ${DB_HOST}
dispatch:
restart: always
# build:
# context: server/
# dockerfile: server.Dockerfile
# args:
# - SERVER_NAME=dispatch
image: xiaoyun461/op-dispatch:3.2
container_name: dispatch
environment:
- SERVER_WAIT=nodeserver:20081
- APP_ID=9001.5.1.1
ports:
- "20001:20001"
- "20021:20021"
env_file:
- .env
networks:
op-v3.2:
ipv4_address: ${DISPATCH_HOST}
gameserver:
restart: always
# build:
# context: server/
# dockerfile: server.Dockerfile
# args:
# - SERVER_NAME=gameserver
image: xiaoyun461/op-gameserver:3.2
container_name: gameserver
environment:
- SERVER_WAIT=dispatch:20001
- APP_ID=9001.2.1.1
ports:
- "20071:20071"
env_file:
- .env
volumes:
- ./data:/srv/data
- ./res:/srv/res
networks:
op-v3.2:
ipv4_address: ${GAME_HOST}
muipserver:
restart: always
# build:
# context: server/
# dockerfile: server.Dockerfile
# args:
# - SERVER_NAME=muipserver
image: xiaoyun461/op-muipserver:3.2
container_name: muipserver
environment:
- SERVER_WAIT=dispatch:20001
- APP_ID=9001.6.1.1
ports:
- "20011:20011"
env_file:
- .env
volumes:
- ./data:/srv/data
- ./res:/srv/res
networks:
op-v3.2:
ipv4_address: ${MUIP_HOST}
oaserver:
restart: always
# build:
# context: server/
# dockerfile: server.Dockerfile
# args:
# - SERVER_NAME=oaserver
image: xiaoyun461/op-oaserver:3.2
container_name: oaserver
environment:
- SERVER_WAIT=dispatch:20001
- APP_ID=9001.9.1.1
ports:
- "20051:20051"
env_file:
- .env
volumes:
- ./data:/srv/data
- ./res:/srv/res
networks:
op-v3.2:
ipv4_address: ${OA_HOST}
pathfindingserver:
restart: always
# build:
# context: server/
# dockerfile: server.Dockerfile
# args:
# - SERVER_NAME=pathfindingserver
image: xiaoyun461/op-pathfindingserver:3.2
container_name: pathfindingserver
environment:
- SERVER_WAIT=dispatch:20001
- APP_ID=9001.8.1.1
ports:
- "20061:20061"
volumes:
- ./data:/srv/data
- ./res:/srv/res
env_file:
- .env
networks:
op-v3.2:
ipv4_address: ${PATHFINDING_HOST}
multiserver:
restart: always
# build:
# context: server/
# dockerfile: server.Dockerfile
# args:
# - SERVER_NAME=multiserver
image: xiaoyun461/op-multiserver:3.2
container_name: multiserver
environment:
- SERVER_WAIT=dispatch:20001
- APP_ID=9001.7.1.1
env_file:
- .env
volumes:
- ./data:/srv/data
- ./res:/srv/res
networks:
op-v3.2:
ipv4_address: ${MULTI_HOST}
tothemoonserver:
restart: always
# build:
# context: server/
# dockerfile: server.Dockerfile
# args:
# - SERVER_NAME=tothemoonserver
image: xiaoyun461/op-tothemoonserver:3.2
container_name: tothemoonserver
environment:
- SERVER_WAIT=dispatch:20001
- APP_ID=9001.10.1.1
env_file:
- .env
volumes:
- ./data:/srv/data
- ./res:/srv/res
networks:
op-v3.2:
ipv4_address: ${TOTHEMOON_HOST}
proxyserver:
restart: always
build:
context: server/
dockerfile: proxy.Dockerfile
image: xiaoyun461/op-proxyserver:3.2
container_name: proxyserver
privileged: true
environment:
- PROXYSERVER_WAIT=${MONGODB_HOST}:${MONGODB_PORT} -s -t 0 -- wait-for-it.sh dispatch:20001
stdin_open: true
tty: true
env_file:
- .env
ports:
- "${OUTER_IP_PORT}:2888"
networks:
op-v3.2:
ipv4_address: ${PROXYSERVER_HOST}
networks:
op-v3.2:
ipam:
config:
- subnet: 172.19.0.0/16
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiaoyun461/op-server-docker-v3.2.git
git@gitee.com:xiaoyun461/op-server-docker-v3.2.git
xiaoyun461
op-server-docker-v3.2
op-server-docker-v3.2
master

搜索帮助