-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
53 lines (47 loc) · 979 Bytes
/
docker-compose.yml
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
version: '3.9'
services:
communication-server:
image: game/communication-server
build:
context: .
dockerfile: CommunicationServer/Dockerfile
#ports:
# #- "44360:44390"
# #- "44370:44370"
game-master:
image: game/game-master
build:
context: .
dockerfile: GameMaster/Dockerfile
ports:
- "5000:80"
- "44370:44370"
player-red:
image: game/player
build:
context: .
dockerfile: Player/Dockerfile
command: TeamId=0
deploy:
replicas: 2
restart_policy:
condition: on-failure
delay: 1s
max_attempts: 3
window: 5s
ports:
- "80"
# - "44360:44380"
player-blue:
image: game/player
build:
context: .
dockerfile: Player/Dockerfile
command: TeamId=1
deploy:
replicas: 2
restart_policy:
condition: on-failure
delay: 1s
max_attempts: 3
window: 5s