forked from yutadd/Carlito
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (62 loc) · 1.43 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
version: "3"
services:
dns:
build: Docker/DNS
ports:
- 53:53
networks:
virtual01:
ipv4_address: 172.18.0.3
node01:
build:
dockerfile: ./Docker/Node/Dockerfile
context: ./
volumes:
- ./Docker/Node/01/Blocks/:/root/Carlito/Blocks/
- ./source/:/root/Carlito/source
- ./Docker/Node/01/:/root/Carlito/Config/
- ./Docker/Node/01/secret:/root/Carlito/secret/
ports:
- 7777
networks:
virtual01:
ipv4_address: 172.18.0.4
node02:
build:
dockerfile: ./Docker/Node/Dockerfile
context: ./
volumes:
- ./Docker/Node/02/Blocks/:/root/Carlito/Blocks/
- ./source/:/root/Carlito/source
- ./Docker/Node/02/:/root/Carlito/Config/
- ./Docker/Node/02/secret:/root/Carlito/secret/
ports:
- 7777
depends_on:
- node01
networks:
virtual01:
ipv4_address: 172.18.0.5
node03:
build:
dockerfile: ./Docker/Node/Dockerfile
context: ./
volumes:
- ./Docker/Node/03/Blocks/:/root/Carlito/Blocks/
- ./source/:/root/Carlito/source
- ./Docker/Node/03/:/root/Carlito/Config/
- ./Docker/Node/03/secret:/root/Carlito/secret/
ports:
- 7777
depends_on:
- node02
networks:
virtual01:
ipv4_address: 172.18.0.6
networks:
virtual01:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.18.0.0/16