version: "3" services: srbydld_1_1: image: repo.qianz.com/indonesia/srbydld:master-v0.0.01 container_name: srbydld_1_1 environment: - GAMEID=3005 - ARENAID=1 #场ID - SERVERID=1 - VERSION=1 - ADDRESS=149.129.217.130:31001 - DISCOVERY_NODES=discovery.zt:7000 - HTTPADDRESS=192.168.0.123:31011 - DEPLOY_ENV=prod - ZAP_PATH=/opt/service/bin/log/ - LOG_DIR=/opt/service/bin/log/ #restart: always ports: - 31011:8000 #http端口 - 31001:3101 #tcp端口 volumes: - /etc/hosts:/etc/hosts - /etc/localtime:/etc/localtime - /usr/local/gitlab-runner/game/srbydld/logs/log1_1/:/opt/service/bin/log/ - /usr/local/gitlab-runner/game/srbydld/configs/:/opt/service/configs/ logging: driver: "json-file" options: max-size: "200m" # 切割之前日志的最大大小。可取值单位为(k,m,g) max-file: "10" srbydld_2_1: image: repo.qianz.com/indonesia/srbydld:master-v0.0.01 container_name: srbydld_2_1 environment: - GAMEID=3005 - ARENAID=2 #场ID - SERVERID=1 - VERSION=1 - ADDRESS=149.129.217.130:31002 - DISCOVERY_NODES=discovery.zt:7000 - HTTPADDRESS=192.168.0.123:31012 - DEPLOY_ENV=prod - ZAP_PATH=/opt/service/bin/log/ - LOG_DIR=/opt/service/bin/log/ #restart: always ports: - 31012:8000 #http端口 - 31002:3101 #tcp端口 volumes: - /etc/hosts:/etc/hosts - /etc/localtime:/etc/localtime - /usr/local/gitlab-runner/game/srbydld/logs/log2_1/:/opt/service/bin/log/ - /usr/local/gitlab-runner/game/srbydld/configs/:/opt/service/configs/ logging: driver: "json-file" options: max-size: "200m" # 切割之前日志的最大大小。可取值单位为(k,m,g) max-file: "10" srbydld_3_1: image: repo.qianz.com/indonesia/srbydld:master-v0.0.01 container_name: srbydld_3_1 environment: - GAMEID=3005 - ARENAID=3 #场ID - SERVERID=1 - VERSION=1 - ADDRESS=149.129.217.130:31003 - DISCOVERY_NODES=discovery.zt:7000 - HTTPADDRESS=192.168.0.123:31013 - DEPLOY_ENV=prod - ZAP_PATH=/opt/service/bin/log/ - LOG_DIR=/opt/service/bin/log/ #restart: always ports: - 31013:8000 #http端口 - 31003:3101 #tcp端口 volumes: - /etc/hosts:/etc/hosts - /etc/localtime:/etc/localtime - /usr/local/gitlab-runner/game/srbydld/logs/log3_1/:/opt/service/bin/log/ - /usr/local/gitlab-runner/game/srbydld/configs/:/opt/service/configs/ logging: driver: "json-file" options: max-size: "200m" # 切割之前日志的最大大小。可取值单位为(k,m,g) max-file: "10" srbydld_4_1: image: repo.qianz.com/indonesia/srbydld:master-v0.0.01 container_name: srbydld_4_1 environment: - GAMEID=3005 - ARENAID=4 #场ID - SERVERID=1 - VERSION=1 - ADDRESS=149.129.217.130:31004 - DISCOVERY_NODES=discovery.zt:7000 - HTTPADDRESS=192.168.0.123:31014 - DEPLOY_ENV=prod - ZAP_PATH=/opt/service/bin/log/ - LOG_DIR=/opt/service/bin/log/ #restart: always ports: - 31014:8000 #http端口 - 31004:3101 #tcp端口 volumes: - /etc/hosts:/etc/hosts - /etc/localtime:/etc/localtime - /usr/local/gitlab-runner/game/srbydld/logs/log4_1/:/opt/service/bin/log/ - /usr/local/gitlab-runner/game/srbydld/configs/:/opt/service/configs/ logging: driver: "json-file" options: max-size: "200m" # 切割之前日志的最大大小。可取值单位为(k,m,g) max-file: "10" srbydld_5_1: image: repo.qianz.com/indonesia/srbydld:master-v0.0.01 container_name: srbydld_5_1 environment: - GAMEID=3005 - ARENAID=5 #场ID - SERVERID=1 - VERSION=1 - ADDRESS=149.129.217.130:31005 - DISCOVERY_NODES=discovery.zt:7000 - HTTPADDRESS=192.168.0.123:31015 - DEPLOY_ENV=prod - ZAP_PATH=/opt/service/bin/log/ - LOG_DIR=/opt/service/bin/log/ #restart: always ports: - 31015:8000 #http端口 - 31005:3101 #tcp端口 volumes: - /etc/hosts:/etc/hosts - /etc/localtime:/etc/localtime - /usr/local/gitlab-runner/game/srbydld/logs/log5_1/:/opt/service/bin/log/ - /usr/local/gitlab-runner/game/srbydld/configs/:/opt/service/configs/ logging: driver: "json-file" options: max-size: "200m" # 切割之前日志的最大大小。可取值单位为(k,m,g) max-file: "10"