-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 1.07 KB
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (41 loc) · 1.07 KB
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
services:
node-a:
build: .
command: ["-id", "A", "-http", ":8080", "-peers", "A=node-a:8080,B=node-b:8080,C=node-c:8080", "-wal", "/data/a.wal"]
ports:
- "8081:8080"
volumes:
- a-data:/data
healthcheck:
test: ["CMD", "curl", "-sf", "http://127.0.0.1:8080/health"]
interval: 1s
timeout: 2s
retries: 20
node-b:
build: .
command: ["-id", "B", "-http", ":8080", "-peers", "A=node-a:8080,B=node-b:8080,C=node-c:8080", "-wal", "/data/b.wal"]
ports:
- "8082:8080"
volumes:
- b-data:/data
healthcheck:
test: ["CMD", "curl", "-sf", "http://127.0.0.1:8080/health"]
interval: 1s
timeout: 2s
retries: 20
node-c:
build: .
command: ["-id", "C", "-http", ":8080", "-peers", "A=node-a:8080,B=node-b:8080,C=node-c:8080", "-wal", "/data/c.wal"]
ports:
- "8083:8080"
volumes:
- c-data:/data
healthcheck:
test: ["CMD", "curl", "-sf", "http://127.0.0.1:8080/health"]
interval: 1s
timeout: 2s
retries: 20
volumes:
a-data:
b-data:
c-data: