-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (69 loc) · 1.35 KB
/
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
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"
services:
node_one:
image: raft-trading-server:latest
container_name: node_one
ports:
# HOST:CONTAINER
- "4001:4000"
- "6001:6000"
environment:
ID: "1"
build:
dockerfile: Dockerfile
context: .
networks:
default:
ipv4_address: 172.20.0.4
node_two:
image: raft-trading-server:latest
container_name: node_two
ports:
- "4002:4000"
- "6002:6000"
environment:
ID: "2"
build:
dockerfile: Dockerfile
context: .
networks:
default:
ipv4_address: 172.20.0.2
node_three:
image: raft-trading-server:latest
container_name: node_three
ports:
- "4003:4000"
- "6003:6000"
environment:
ID: "3"
build:
dockerfile: Dockerfile
context: .
networks:
default:
ipv4_address: 172.20.0.3
frontend:
image: raft-trading-frontend:latest
networks:
default:
ipv4_address: 172.20.0.200
ports:
- "80:3000"
# envoy_service:
# build:
# context: .
# dockerfile: Dockerfile-envoy
# ports:
# - "8000:8000"
## volumes:
## - ./envoy.yaml:/etc/envoy/envoy.yaml
# networks:
# default:
# ipv4_address: 172.20.0.20
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/24