-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (78 loc) · 1.91 KB
/
docker-compose.yml
File metadata and controls
81 lines (78 loc) · 1.91 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
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
services:
node1:
build: .
ports:
- "8091:8080"
- "9091:9090"
environment:
- REPRAM_NODE_ID=node1
- REPRAM_ADDRESS=node1
- REPRAM_HTTP_PORT=8080
- REPRAM_GOSSIP_PORT=9090
- REPRAM_NETWORK=private
- REPRAM_PEERS=node2:8080,node3:8080
- REPRAM_REPLICATION=3
- REPRAM_ENCLAVE=enclave-a
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/v1/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- repram-net
node2:
build: .
ports:
- "8092:8080"
- "9092:9090"
environment:
- REPRAM_NODE_ID=node2
- REPRAM_ADDRESS=node2
- REPRAM_HTTP_PORT=8080
- REPRAM_GOSSIP_PORT=9090
- REPRAM_NETWORK=private
- REPRAM_PEERS=node1:8080,node3:8080
- REPRAM_REPLICATION=3
- REPRAM_ENCLAVE=enclave-a
depends_on:
node1:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/v1/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- repram-net
node3:
build: .
ports:
- "8093:8080"
- "9093:9090"
environment:
- REPRAM_NODE_ID=node3
- REPRAM_ADDRESS=node3
- REPRAM_HTTP_PORT=8080
- REPRAM_GOSSIP_PORT=9090
- REPRAM_NETWORK=private
- REPRAM_PEERS=node1:8080,node2:8080
- REPRAM_REPLICATION=3
- REPRAM_ENCLAVE=enclave-b
depends_on:
node1:
condition: service_healthy
node2:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/v1/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- repram-net
networks:
repram-net:
driver: bridge