-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
76 lines (69 loc) · 1.72 KB
/
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.7'
services:
gateway:
container_name: gateway
build:
context: .
dockerfile: Dockerfile
volumes:
- ./cmd/gateway/config.yml:/gateway.yml
ports:
- "11700:11700/tcp"
- "11070:11070/tcp"
- "11007:11007/tcp"
- "11770:11770/tcp"
entrypoint: /gateway --config /gateway.yml
relay-red-green:
container_name: relay-red-green
build:
context: .
dockerfile: Dockerfile
depends_on:
- gateway
entrypoint: /relay --gateways gateway:4444 --listenAddr 0.0.0.0:5555 --regions red --regions green
relay-blue-yellow:
container_name: relay-blue-yellow
build:
context: .
dockerfile: Dockerfile
depends_on:
- gateway
entrypoint: /relay --gateways gateway:4444 --listenAddr 0.0.0.0:5555 --regions blue --regions yellow
edge-red:
build:
context: .
dockerfile: Dockerfile
deploy:
replicas: 3
depends_on:
- relay-red-green
entrypoint: /edge --relayAddr relay-red-green:5555 --region red
edge-green:
build:
context: .
dockerfile: Dockerfile
deploy:
replicas: 3
depends_on:
- relay-red-green
entrypoint: /edge --relayAddr relay-red-green:5555 --region green
edge-blue:
build:
context: .
dockerfile: Dockerfile
deploy:
replicas: 3
depends_on:
- relay-blue-yellow
entrypoint: /edge --relayAddr relay-blue-yellow:5555 --region blue
edge-yellow:
build:
context: .
dockerfile: Dockerfile
deploy:
replicas: 3
depends_on:
- relay-blue-yellow
extra_hosts:
- "host.docker.internal:host-gateway"
entrypoint: /edge --relayAddr relay-blue-yellow:5555 --region yellow