-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
104 lines (98 loc) · 2.49 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
services:
zetina-stone-prover:
build:
context: stone-prover
dockerfile: Dockerfile
image: zetina-stone-prover
zetina-runtime:
build:
dockerfile: runtime.dockerfile
image: zetina-runtime
depends_on:
- zetina-stone-prover
zetina-delegator-dashboard-1:
build:
context: dashboard
dockerfile: dashboard.dockerfile
deploy:
resources:
limits:
cpus: '1'
memory: '1G'
image: zetina-delegator-dashboard
hostname: zetina-delegator-dashboard-1
ports:
- "3000:3000"
environment:
- NODE_ENV=development
zetina-delegator-1:
build:
dockerfile: delegator.dockerfile
deploy:
resources:
limits:
cpus: '1'
memory: '1G'
environment:
- RUST_LOG=info
image: zetina-delegator
hostname: zetina-delegator-1
networks:
zetina-network:
ipv4_address: 172.16.238.2
ports:
- "4000:3000"
command:
- "bash"
- "-ci"
- "cargo run --release --bin zetina-delegator -- -l /ip4/0.0.0.0/tcp/5679 -p ${PRIVATE_KEY_1} -a /ip4/172.16.238.2/tcp/5679/p2p/${PEER_ID_1}"
zetina-executor-1:
build:
dockerfile: executor.dockerfile
depends_on:
- zetina-runtime
- zetina-delegator-1
deploy:
resources:
limits:
cpus: '10'
memory: '25G'
environment:
- RUST_LOG=info
image: zetina-executor
hostname: zetina-executor-1
networks:
zetina-network:
ipv4_address: 172.16.238.12
command:
- "bash"
- "-ci"
- "cargo run --release --bin zetina-executor -- -l /ip4/0.0.0.0/tcp/5679 -p ${PRIVATE_KEY_2} -a /ip4/172.16.238.12/tcp/5679/p2p/${PEER_ID_2} -d /ip4/172.16.238.2/tcp/5679/p2p/${PEER_ID_1}"
zetina-executor-2:
build:
dockerfile: executor.dockerfile
depends_on:
- zetina-runtime
- zetina-delegator-1
deploy:
resources:
limits:
cpus: '10'
memory: '25G'
environment:
- RUST_LOG=info
image: zetina-executor
hostname: zetina-executor-2
networks:
zetina-network:
ipv4_address: 172.16.238.13
command:
- "bash"
- "-ci"
- "cargo run --release --bin zetina-executor -- -l /ip4/0.0.0.0/tcp/5679 -p ${PRIVATE_KEY_3} -a /ip4/172.16.238.13/tcp/5679/p2p/${PEER_ID_3} -d /ip4/172.16.238.2/tcp/5679/p2p/${PEER_ID_1}"
networks:
zetina-network:
driver: bridge
ipam:
config:
- subnet: 172.16.238.0/24