-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (77 loc) · 1.97 KB
/
docker-compose.yml
File metadata and controls
80 lines (77 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
mongo:
image: mongo:8.2
container_name: gfx-mongo
restart: unless-stopped
ports:
- "37017:27017"
healthcheck:
test: [ "CMD", "mongosh", "--quiet", "--eval", "db.runCommand({ ping: 1 }).ok" ]
interval: 5s
timeout: 3s
retries: 20
networks:
- gameframex
game:
build:
context: .
image: gameframex/server.launcher:local
container_name: gfx-game
depends_on:
mongo:
condition: service_healthy
social:
condition: service_started
command:
- "--ServerType=Game"
- "--ServerId=1001"
- "--ServerInstanceId=1"
- "--InnerHost=0.0.0.0"
- "--InnerPort=29100"
- "--OuterHost=0.0.0.0"
- "--OuterPort=29100"
- "--HttpPort=28080"
- "--IsEnableHttp=true"
- "--DataBaseUrl=mongodb://mongo:27017/?authSource=admin"
- "--DataBaseName=gameframex"
environment:
services__social__tcp__0: "tcp://social:29400"
services__social__http__0: "http://social:28081"
ports:
- "39100:29100"
- "38080:28080"
volumes:
- "./running/game/logs:/app/data/logs"
networks:
- gameframex
social:
image: gameframex/server.launcher:local
container_name: gfx-social
depends_on:
mongo:
condition: service_healthy
command:
- "--ServerType=Social"
- "--ServerId=1002"
- "--ServerInstanceId=2"
- "--InnerHost=0.0.0.0"
- "--InnerPort=29400"
- "--OuterHost=0.0.0.0"
- "--OuterPort=29400"
- "--HttpPort=28081"
- "--IsEnableHttp=true"
- "--DataBaseUrl=mongodb://mongo:27017/?authSource=admin"
- "--DataBaseName=gameframex"
environment:
services__game__tcp__0: "tcp://game:29100"
services__game__http__0: "http://game:28080"
ports:
- "39400:29400"
- "38081:28081"
volumes:
- "./running/social/logs:/app/data/logs"
networks:
- gameframex
networks:
gameframex:
driver: bridge