forked from ZcashFoundation/z3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (60 loc) · 1.59 KB
/
docker-compose.yml
File metadata and controls
64 lines (60 loc) · 1.59 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
# Z3 Docker Compose - Regtest Deployment
#
# For CI, automated testing, or running on a shared dev server.
# Local development should use: overmind start
#
# Usage:
# docker compose build # Build images with patched submodules
# docker compose up -d # Start services
# docker compose logs -f # Follow logs
services:
zebra:
build:
context: .
dockerfile: Dockerfile.zebra
container_name: z3_zebra
restart: unless-stopped
volumes:
- zebra_data:/data/zebra
- ./config/zebra-docker.toml:/etc/zebra/config.toml:ro
ports:
- "18232:18232" # RPC
- "8080:8080" # Health/metrics
networks:
- z3_net
healthcheck:
test: ["CMD-SHELL", "curl -sf http://127.0.0.1:8080/ready || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
command: ["-c", "/etc/zebra/config.toml"]
zaino:
build:
context: .
dockerfile: Dockerfile.zaino
container_name: z3_zaino
restart: unless-stopped
depends_on:
zebra:
condition: service_healthy
volumes:
- zaino_data:/data/zaino
- ./config/zaino-docker.toml:/etc/zaino/config.toml:ro
ports:
- "8137:8137" # gRPC (lightwalletd protocol)
networks:
- z3_net
healthcheck:
test: ["CMD-SHELL", "zainod --version >/dev/null 2>&1 || exit 1"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
command: ["-c", "/etc/zaino/config.toml"]
volumes:
zebra_data:
zaino_data:
networks:
z3_net:
driver: bridge