-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
72 lines (65 loc) · 1.17 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
version: '3.8'
x-peer: &default-peer
build:
context: .
dockerfile: Dockerfile
environment:
- GOLOG_LOG_LEVEL=iris=debug
command:
- ./peercli
- --conf
- ./vol/config.yaml
services:
redis:
image: redis
networks:
p2pnetwork:
ipv4_address: 192.168.0.69
peer1:
<<: *default-peer
volumes:
- ./dev/peer1:/usr/iris/vol
depends_on:
- redis
networks:
p2pnetwork:
ipv4_address: 192.168.0.10
peer2:
<<: *default-peer
volumes:
- ./dev/peer2:/usr/iris/vol
depends_on:
- redis
- peer1
networks:
p2pnetwork:
ipv4_address: 192.168.0.20
peer3:
<<: *default-peer
volumes:
- ./dev/peer3:/usr/iris/vol
depends_on:
- redis
- peer1
- peer2
networks:
p2pnetwork:
ipv4_address: 192.168.0.30
peer4:
<<: *default-peer
volumes:
- ./dev/peer4:/usr/iris/vol
depends_on:
- redis
- peer1
- peer2
- peer3
networks:
p2pnetwork:
ipv4_address: 192.168.0.40
networks:
p2pnetwork:
ipam:
driver: default
config:
- subnet: 192.168.0.0/24