-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (55 loc) · 1018 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (55 loc) · 1018 Bytes
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
services:
bootstrap:
build: .
container_name: sharehr-bootstrap
environment:
- ROLE=bootstrap
- PORT=4001
volumes:
- shared-data:/shared
networks:
- sharehr-net
node1:
build: .
container_name: sharehr-node1
environment:
- ROLE=node
- PORT=4002
- BOOTSTRAP_PORT=4001
volumes:
- shared-data:/shared
depends_on:
- bootstrap
networks:
- sharehr-net
node2:
build: .
container_name: sharehr-node2
environment:
- ROLE=node
- PORT=4003
- BOOTSTRAP_PORT=4001
volumes:
- shared-data:/shared
depends_on:
- bootstrap
networks:
- sharehr-net
node3:
build: .
container_name: sharehr-node3
environment:
- ROLE=node
- PORT=4004
- BOOTSTRAP_PORT=4001
volumes:
- shared-data:/shared
depends_on:
- bootstrap
networks:
- sharehr-net
volumes:
shared-data:
networks:
sharehr-net:
driver: bridge