forked from Supercoolkayy/ZecKit
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
175 lines (170 loc) · 4.37 KB
/
docker-compose.yml
File metadata and controls
175 lines (170 loc) · 4.37 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# ========================================
# NETWORKS
# ========================================
networks:
zeckit-network:
driver: bridge
# ========================================
# VOLUMES
# ========================================
volumes:
zebra-data:
lightwalletd-data:
zaino-data:
faucet-data:
# ========================================
# SERVICES
# ========================================
services:
# ========================================
# ZEBRA NODE
# ========================================
zebra:
build:
context: ./docker/zebra
dockerfile: Dockerfile
container_name: zeckit-zebra
ports:
- "127.0.0.1:8232:8232"
- "127.0.0.1:8233:8233"
volumes:
- ./docker/configs/zebra.toml:/etc/zebrad/zebrad.toml:ro
- zebra-data:/var/zebra
environment:
- NETWORK=Regtest
networks:
- zeckit-network
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "timeout 5 bash -c 'cat < /dev/null > /dev/tcp/127.0.0.1/8232' || exit 1"]
interval: 30s
timeout: 10s
retries: 10
start_period: 120s
# ========================================
# LIGHTWALLETD (Profile: lwd)
# ========================================
lightwalletd:
build:
context: ./docker/lightwalletd
dockerfile: Dockerfile
container_name: zeckit-lightwalletd
ports:
- "127.0.0.1:9067:9067"
depends_on:
zebra:
condition: service_healthy
environment:
- ZEBRA_RPC_HOST=zebra
- ZEBRA_RPC_PORT=8232
- LWD_GRPC_BIND=0.0.0.0:9067
volumes:
- lightwalletd-data:/var/lightwalletd
networks:
- zeckit-network
restart: unless-stopped
profiles:
- lwd
healthcheck:
test: ["CMD-SHELL", "timeout 5 bash -c 'cat < /dev/null > /dev/tcp/127.0.0.1/9067' || exit 1"]
interval: 10s
timeout: 5s
retries: 30
start_period: 120s
# ========================================
# ZAINO INDEXER (Profile: zaino)
# ========================================
zaino:
build:
context: ./docker/zaino
dockerfile: Dockerfile
args:
- NO_TLS=true
- RUST_VERSION=1.91.1
container_name: zeckit-zaino
ports:
- "127.0.0.1:9067:9067"
depends_on:
zebra:
condition: service_healthy
environment:
- ZEBRA_RPC_HOST=zebra
- ZEBRA_RPC_PORT=8232
- ZAINO_GRPC_BIND=0.0.0.0:9067
- ZAINO_DATA_DIR=/var/zaino
- NETWORK=regtest
- RUST_LOG=debug
volumes:
- zaino-data:/var/zaino
networks:
- zeckit-network
restart: unless-stopped
profiles:
- zaino
user: "0:0"
healthcheck:
test: ["CMD-SHELL", "timeout 5 bash -c 'cat < /dev/null > /dev/tcp/127.0.0.1/9067' || exit 1"]
interval: 10s
timeout: 5s
retries: 60
start_period: 180s
# ========================================
# FAUCET SERVICE - LWD Profile
# ========================================
faucet-lwd:
build:
context: ./zeckit-faucet
dockerfile: Dockerfile
container_name: zeckit-faucet
ports:
- "127.0.0.1:8080:8080"
volumes:
- faucet-data:/var/zingo
environment:
- LIGHTWALLETD_URI=http://lightwalletd:9067
- ZEBRA_RPC_URL=http://zebra:8232
- ZINGO_DATA_DIR=/var/zingo
- FAUCET_AMOUNT_MIN=0.01
- FAUCET_AMOUNT_MAX=100.0
- FAUCET_AMOUNT_DEFAULT=10.0
- RUST_LOG=info
depends_on:
zebra:
condition: service_healthy
lightwalletd:
condition: service_healthy
networks:
- zeckit-network
restart: unless-stopped
profiles:
- lwd
# ========================================
# FAUCET SERVICE - Zaino Profile
# ========================================
faucet-zaino:
build:
context: ./zeckit-faucet
dockerfile: Dockerfile
container_name: zeckit-faucet
ports:
- "127.0.0.1:8080:8080"
volumes:
- faucet-data:/var/zingo
environment:
- LIGHTWALLETD_URI=http://zaino:9067
- ZEBRA_RPC_URL=http://zebra:8232
- ZINGO_DATA_DIR=/var/zingo
- FAUCET_AMOUNT_MIN=0.01
- FAUCET_AMOUNT_MAX=100.0
- FAUCET_AMOUNT_DEFAULT=10.0
- RUST_LOG=info
depends_on:
zebra:
condition: service_healthy
zaino:
condition: service_started
networks:
- zeckit-network
restart: unless-stopped
profiles:
- zaino