-
Notifications
You must be signed in to change notification settings - Fork 0
/
jepsen-compose.yaml
84 lines (77 loc) · 1.57 KB
/
jepsen-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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: jepsen
x-defaults: &defaults
privileged: true
cap_add:
- ALL
cgroup: host
tty: true
stop_signal: SIGRTMIN+3
tmpfs:
- /run:size=100M
- /run/lock:size=100M
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
- jepsen-shared:/var/jepsen/shared
networks:
- jepsen
healthcheck:
test: ["CMD-SHELL", "systemctl", "is-system-running"]
interval: 1s
timeout: 1s
retries: 3
start_period: 3s
x-node: &default-node
<<: *defaults
image: ${JEPSEN_REGISTRY:-}jepsen-node
depends_on:
setup:
condition: service_completed_successfully
volumes:
jepsen-shared:
networks:
jepsen:
services:
setup:
<<: *defaults
image: ${JEPSEN_REGISTRY:-}jepsen-setup
container_name: jepsen-setup
hostname: setup
entrypoint: ["/usr/local/bin/jepsen-setup.sh"]
control:
<<: *defaults
image: ${JEPSEN_REGISTRY:-}jepsen-control
container_name: jepsen-control
hostname: control
ports:
- 8080:8080
depends_on:
n1:
condition: service_healthy
n2:
condition: service_healthy
n3:
condition: service_healthy
n4:
condition: service_healthy
n5:
condition: service_healthy
n1:
<<: *default-node
container_name: jepsen-n1
hostname: n1
n2:
<<: *default-node
container_name: jepsen-n2
hostname: n2
n3:
<<: *default-node
container_name: jepsen-n3
hostname: n3
n4:
<<: *default-node
container_name: jepsen-n4
hostname: n4
n5:
<<: *default-node
container_name: jepsen-n5
hostname: n5