-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
57 lines (56 loc) · 973 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3'
services:
node1:
container_name: node1
build: .
ports:
- "7003-7004:7003-7004"
environment:
- NODEID=1
networks:
localnet:
ipv4_address: 10.5.0.2
node2:
container_name: node2
build: .
ports:
- "7005-7006:7003-7004"
environment:
- NODEID=2
depends_on:
- node1
networks:
localnet:
ipv4_address: 10.5.0.3
node3:
container_name: node3
build: .
ports:
- "7007-7008:7003-7004"
environment:
- NODEID=3
depends_on:
- node2
networks:
localnet:
ipv4_address: 10.5.0.4
node4:
container_name: node4
build: .
ports:
- "7009-7010:7003-7004"
environment:
- NODEID=4
depends_on:
- node3
networks:
localnet:
ipv4_address: 10.5.0.5
networks:
localnet:
driver: bridge
ipam:
driver: default
config:
-
subnet: 10.5.0.0/16