-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
61 lines (57 loc) · 1.21 KB
/
docker-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
services:
rust-node-1:
container_name: rust-node-1
build: .
restart: always
user: "1000:1000"
environment:
- PATH_TO_DB=/var/data/node-1.sqlite
- API_HOST_WITH_PORT=0.0.0.0:8080
- LOCAL_VALIDATOR=0
networks:
- rust-net
ports:
- "8080:8080"
rust-node-2:
container_name: rust-node-2
build: .
restart: always
user: "1000:1000"
environment:
- PATH_TO_DB=/var/data/node-2.sqlite
- API_HOST_WITH_PORT=0.0.0.0:8081
- LOCAL_VALIDATOR=1
networks:
- rust-net
ports:
- "8081:8081"
rust-node-3:
container_name: rust-node-3
build: .
restart: always
user: "1000:1000"
environment:
- PATH_TO_DB=/var/data/node-2.sqlite
- API_HOST_WITH_PORT=0.0.0.0:8082
- LOCAL_VALIDATOR=2
networks:
- rust-net
ports:
- "8082:8082"
rust-node-4:
container_name: rust-node-4
build: .
restart: always
user: "1000:1000"
environment:
- PATH_TO_DB=/var/data/node-2.sqlite
- API_HOST_WITH_PORT=0.0.0.0:8083
- LOCAL_VALIDATOR=3
networks:
- rust-net
ports:
- "8083:8083"
networks:
rust-net:
name: rust-net
driver: bridge