version: '3' services: xcsgame_a_1: image: repo.rdvalidasi.com/indonesia/game/coin/xcsgame:v0.1.2 container_name: xcsgame_a_1 environment: ApolloStart: "start" ApolloAddr: "http://apollo-uat" ApolloClusterName: "default" ApolloAppId: "xcsgame" command: ./xcsgame -gid 1 -sid "10071101" -lf "log/" -runType 1 -gamePort 8000 -httpPort 8080 restart: always ports: - "10171:8000" - "10175:8080" volumes: - /etc/localtime:/etc/localtime - /etc/hosts:/etc/hosts - /usr/local/gitlab-runner/game/xcsgame/logs/normal_a:/xcsgame/log logging: driver: "json-file" options: max-size: "200m" # 切割之前日志的最大大小。可取值单位为(k,m,g) max-file: "10" xcsgame_a_2: image: repo.rdvalidasi.com/indonesia/game/coin/xcsgame:v0.1.2 container_name: xcsgame_a_2 environment: ApolloStart: "start" ApolloAddr: "http://apollo-uat" ApolloClusterName: "default" ApolloAppId: "xcsgame" command: ./xcsgame -gid 2 -sid "10071201" -lf "log/" -runType 1 -gamePort 8000 -httpPort 8080 restart: always ports: - "10172:8000" - "10176:8080" volumes: - /etc/localtime:/etc/localtime - /etc/hosts:/etc/hosts - /usr/local/gitlab-runner/game/xcsgame/logs/normal_a:/xcsgame/log logging: driver: "json-file" options: max-size: "200m" # 切割之前日志的最大大小。可取值单位为(k,m,g) max-file: "10" xcsgame_a_3: image: repo.rdvalidasi.com/indonesia/game/coin/xcsgame:v0.1.2 container_name: xcsgame_a_3 environment: ApolloStart: "start" ApolloAddr: "http://apollo-uat" ApolloClusterName: "default" ApolloAppId: "xcsgame" command: ./xcsgame -gid 3 -sid "10071301" -lf "log/" -runType 1 -gamePort 8000 -httpPort 8080 restart: always ports: - "10173:8000" - "10177:8080" volumes: - /etc/localtime:/etc/localtime - /etc/hosts:/etc/hosts - /usr/local/gitlab-runner/game/xcsgame/logs/normal_a:/xcsgame/log logging: driver: "json-file" options: max-size: "200m" # 切割之前日志的最大大小。可取值单位为(k,m,g) max-file: "10" xcsgame_a_4: image: repo.rdvalidasi.com/indonesia/game/coin/xcsgame:v0.1.2 container_name: xcsgame_a_4 environment: ApolloStart: "start" ApolloAddr: "http://apollo-uat" ApolloClusterName: "default" ApolloAppId: "xcsgame" command: ./xcsgame -gid 4 -sid "10071401" -lf "log/" -runType 1 -gamePort 8000 -httpPort 8080 restart: always ports: - "10174:8000" - "10178:8080" volumes: - /etc/localtime:/etc/localtime - /etc/hosts:/etc/hosts - /usr/local/gitlab-runner/game/xcsgame/logs/normal_a:/xcsgame/log logging: driver: "json-file" options: max-size: "200m" # 切割之前日志的最大大小。可取值单位为(k,m,g) max-file: "10"