-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
69 lines (64 loc) · 1.78 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
version: "3"
services:
# netdelay adds a ~100ms delay between local containers which seems to match
# our real-world experience on AWS cross-world
netdelay:
image: gaiaadm/pumba@sha256:2281261e819dacaece3945cabffd659aaad2dd6cf978eea2bf63c5539e46d5da
command: "netem --duration 96h --tc-image gaiadocker/iproute2 delay --jitter 20 --time 80 re2:^tupelo_node"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- bootstrap
- node0
- node1
- node2
bootstrap:
build: .
command: ["bootstrap-node", "--config", "/configs/bootstrap/config.toml", "-L", "${TUPELO_LOG_LEVEL:-info}"]
volumes:
- ./docker/configs/localdocker:/configs
networks:
default:
ipv4_address: 172.16.238.10
ports:
- "34001:34001"
node0:
depends_on:
- bootstrap
build: .
volumes:
- ./docker/configs/localdocker:/configs
- ./.tmp/node0/data:/tupelo/data
command: ["node", "--config", "/configs/node0/config.toml",
"-L", "${TUPELO_LOG_LEVEL:-info}"]
ports:
- "34002:34002"
node1:
depends_on:
- bootstrap
build: .
volumes:
- ./docker/configs/localdocker:/configs
- ./.tmp/node1/data:/tupelo/data
command: ["node", "--config", "/configs/node1/config.toml",
"-L", "${TUPELO_LOG_LEVEL:-info}"]
ports:
- "34003:34003"
node2:
depends_on:
- bootstrap
build: .
volumes:
- ./docker/configs/localdocker:/configs
- ./.tmp/node2/data:/tupelo/data
command: ["node", "--config", "/configs/node2/config.toml",
"-L", "${TUPELO_LOG_LEVEL:-info}"]
ports:
- "34004:34004"
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.238.0/24