change: Redesign docker compose.
parent
e902898aee
commit
9c71f50aa8
|
|
@ -44,6 +44,8 @@ services:
|
|||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
- metin2
|
||||
|
||||
# Web management system
|
||||
web:
|
||||
|
|
@ -84,6 +86,8 @@ services:
|
|||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
- metin2
|
||||
|
||||
# DBCache Server
|
||||
db:
|
||||
|
|
@ -98,6 +102,8 @@ services:
|
|||
depends_on:
|
||||
mariadb:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- metin2
|
||||
|
||||
# Auth server
|
||||
auth:
|
||||
|
|
@ -122,6 +128,8 @@ services:
|
|||
depends_on:
|
||||
mariadb:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- metin2
|
||||
|
||||
# Game server (CH1)
|
||||
ch1_first:
|
||||
|
|
@ -134,7 +142,7 @@ services:
|
|||
GAME_MARK_SERVER: 1
|
||||
GAME_PORT: 13000
|
||||
GAME_P2P_PORT: 14000
|
||||
GAME_MAP_ALLOW: 1 4 5 6 3 23 43 112 107 67 68 72 208 302 304
|
||||
GAME_MAP_ALLOW: 1 3 4 5 6 21 23 24 25 26 41 43 44 45 46 91 92 93 107 112 201
|
||||
expose:
|
||||
- 13000
|
||||
- 14000
|
||||
|
|
@ -147,6 +155,8 @@ services:
|
|||
depends_on:
|
||||
mariadb:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- metin2
|
||||
|
||||
ch1_game1:
|
||||
image: ${GAME_IMAGE}
|
||||
|
|
@ -158,7 +168,7 @@ services:
|
|||
GAME_MARK_SERVER: 0
|
||||
GAME_PORT: 13001
|
||||
GAME_P2P_PORT: 14001
|
||||
GAME_MAP_ALLOW: 21 24 25 26 108 61 63 69 70 73 216 217 303 184 185
|
||||
GAME_MAP_ALLOW: 61 62 67 68 72 73 208 351 352 356
|
||||
expose:
|
||||
- 13001
|
||||
- 14001
|
||||
|
|
@ -170,6 +180,8 @@ services:
|
|||
depends_on:
|
||||
mariadb:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- metin2
|
||||
|
||||
ch1_game2:
|
||||
image: ${GAME_IMAGE}
|
||||
|
|
@ -181,7 +193,7 @@ services:
|
|||
GAME_MARK_SERVER: 0
|
||||
GAME_PORT: 13002
|
||||
GAME_P2P_PORT: 14002
|
||||
GAME_MAP_ALLOW: 41 44 45 46 109 62 64 65 66 71 104 301 351 186 187
|
||||
GAME_MAP_ALLOW: 63 64 65 66 69 70 71 104 108 109 216 217
|
||||
expose:
|
||||
- 13002
|
||||
- 14002
|
||||
|
|
@ -193,77 +205,83 @@ services:
|
|||
depends_on:
|
||||
mariadb:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- metin2
|
||||
|
||||
# Game server (CH2)
|
||||
ch2_first:
|
||||
ch1_game3:
|
||||
image: ${GAME_IMAGE}
|
||||
restart: always
|
||||
environment:
|
||||
<<: *common-environment
|
||||
GAME_HOSTNAME: ch2_first
|
||||
GAME_CHANNEL: 2
|
||||
GAME_MARK_SERVER: 1
|
||||
GAME_PORT: 13010
|
||||
GAME_P2P_PORT: 14010
|
||||
GAME_MAP_ALLOW: 1 4 5 6 3 23 43 112 107 67 68 72 208 302 304
|
||||
expose:
|
||||
- 13010
|
||||
- 14010
|
||||
ports:
|
||||
- "13010:13010"
|
||||
command: game
|
||||
volumes:
|
||||
- ./storage/log/ch2/first/:/app/log/
|
||||
- ./storage/mark/:/app/mark/
|
||||
depends_on:
|
||||
mariadb:
|
||||
condition: service_healthy
|
||||
|
||||
ch2_game1:
|
||||
image: ${GAME_IMAGE}
|
||||
restart: always
|
||||
environment:
|
||||
<<: *common-environment
|
||||
GAME_HOSTNAME: ch2_game1
|
||||
GAME_CHANNEL: 2
|
||||
GAME_HOSTNAME: ch1_game3
|
||||
GAME_CHANNEL: 1
|
||||
GAME_MARK_SERVER: 0
|
||||
GAME_PORT: 13011
|
||||
GAME_P2P_PORT: 14011
|
||||
GAME_MAP_ALLOW: 21 24 25 26 108 61 63 69 70 73 216 217 303 184 185
|
||||
GAME_PORT: 13003
|
||||
GAME_P2P_PORT: 14003
|
||||
GAME_MAP_ALLOW: 301 302 303 304 353 354 358 359 378 379 380 381
|
||||
expose:
|
||||
- 13011
|
||||
- 14011
|
||||
- 13003
|
||||
- 14003
|
||||
ports:
|
||||
- "13011:13011"
|
||||
- "13003:13003"
|
||||
command: game
|
||||
volumes:
|
||||
- ./storage/log/ch2/game1/:/app/log/
|
||||
- ./storage/log/ch1/game3/:/app/log/
|
||||
depends_on:
|
||||
mariadb:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- metin2
|
||||
|
||||
ch2_game2:
|
||||
ch1_game4:
|
||||
image: ${GAME_IMAGE}
|
||||
restart: always
|
||||
environment:
|
||||
<<: *common-environment
|
||||
GAME_HOSTNAME: ch2_game2
|
||||
GAME_CHANNEL: 2
|
||||
GAME_HOSTNAME: ch1_game4
|
||||
GAME_CHANNEL: 1
|
||||
GAME_MARK_SERVER: 0
|
||||
GAME_PORT: 13012
|
||||
GAME_P2P_PORT: 14012
|
||||
GAME_MAP_ALLOW: 41 44 45 46 109 62 64 65 66 71 104 301 351 186 187
|
||||
GAME_PORT: 13004
|
||||
GAME_P2P_PORT: 14004
|
||||
GAME_MAP_ALLOW: 373 374 376 377 382 383 384 385 386 387 388 389 390 391 393 394 395
|
||||
expose:
|
||||
- 13012
|
||||
- 14012
|
||||
- 13004
|
||||
- 14004
|
||||
ports:
|
||||
- "13012:13012"
|
||||
- "13004:13004"
|
||||
command: game
|
||||
volumes:
|
||||
- ./storage/log/ch2/game2/:/app/log/
|
||||
- ./storage/log/ch1/game4/:/app/log/
|
||||
depends_on:
|
||||
mariadb:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- metin2
|
||||
|
||||
ch1_game5:
|
||||
image: ${GAME_IMAGE}
|
||||
restart: always
|
||||
environment:
|
||||
<<: *common-environment
|
||||
GAME_HOSTNAME: ch1_game5
|
||||
GAME_CHANNEL: 1
|
||||
GAME_MARK_SERVER: 0
|
||||
GAME_PORT: 13005
|
||||
GAME_P2P_PORT: 14005
|
||||
GAME_MAP_ALLOW: 355 357 360 361 362 372 375 396 399 404 405 406 407 408 409 410 411 412 413 414 415 419 420
|
||||
expose:
|
||||
- 13005
|
||||
- 14005
|
||||
ports:
|
||||
- "13005:13005"
|
||||
command: game
|
||||
volumes:
|
||||
- ./storage/log/ch1/game5/:/app/log/
|
||||
depends_on:
|
||||
mariadb:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- metin2
|
||||
|
||||
# Game server (game99)
|
||||
game99:
|
||||
|
|
@ -276,7 +294,7 @@ services:
|
|||
GAME_MARK_SERVER: 0
|
||||
GAME_PORT: 13099
|
||||
GAME_P2P_PORT: 14099
|
||||
GAME_MAP_ALLOW: 113 81 100 101 103 105 110 111 114 118 119 120 121 122 123 124 125 126 127 128 181 182 183 200
|
||||
GAME_MAP_ALLOW: 81 103 105 110 111 113 114 118 119 120 121 122 123 124 125 126 127 128 130 131 132 133 181 182 183 200 392 363 364 365 366 367 368 369 370 371 400 401 402 403
|
||||
expose:
|
||||
- 13099
|
||||
- 14099
|
||||
|
|
@ -288,3 +306,9 @@ services:
|
|||
depends_on:
|
||||
mariadb:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- metin2
|
||||
|
||||
networks:
|
||||
metin2:
|
||||
name: metin2-network
|
||||
|
|
|
|||
Loading…
Reference in New Issue