-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
43 lines (39 loc) · 1007 Bytes
/
docker-compose.yaml
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
version: '3.7'
services:
producer:
image: shopping-cart:latest
network_mode: host
ports:
- '6054:6054'
environment:
CLUSTER__IP: "localhost"
CLUSTER__PORT: 6054
CLUSTER__SEEDS__0: "akka.tcp://shopping-cart@localhost:6054"
IS_FRONTEND: "true"
node-1:
image: shopping-cart:latest
network_mode: host
ports:
- '6055:6055'
environment:
CLUSTER__IP: "localhost"
CLUSTER__PORT: 6055
CLUSTER__SEEDS__0: "akka.tcp://shopping-cart@localhost:6054"
node-2:
image: shopping-cart:latest
network_mode: host
ports:
- '6056:6056'
environment:
CLUSTER__IP: "localhost"
CLUSTER__PORT: 6056
CLUSTER__SEEDS__0: "akka.tcp://shopping-cart@localhost:6054"
node-3:
image: shopping-cart:latest
network_mode: host
ports:
- '6057:6057'
environment:
CLUSTER__IP: "localhost"
CLUSTER__PORT: 6057
CLUSTER__SEEDS__0: "akka.tcp://shopping-cart@localhost:6054"