forked from IguanAI/adic-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.testnet.yml
More file actions
80 lines (75 loc) · 1.92 KB
/
docker-compose.testnet.yml
File metadata and controls
80 lines (75 loc) · 1.92 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
version: '3.8'
services:
adic-testnet:
build:
context: https://github.com/IguanAI/adic-core.git#main
dockerfile: Dockerfile
container_name: adic-testnet-validator
ports:
- "${API_PORT:-8080}:8080" # API port
- "${P2P_PORT:-9000}:9000" # P2P TCP port
- "${QUIC_PORT:-9001}:9001/udp" # QUIC UDP port
volumes:
- adic-testnet-data:/data
- ./genesis.json:/data/genesis.json:ro
environment:
- RUST_LOG=${RUST_LOG:-info}
- NODE_NAME=${NODE_NAME:-testnet-validator}
- DATA_DIR=/data
- AUTO_UPDATE=true
- DNS_SEEDS=_seeds.adicl1.com
command: [
"adic",
"start",
"--network", "testnet"
]
restart: unless-stopped
networks:
- adic-testnet
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/v1/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Optional: Local monitoring with Prometheus
prometheus:
image: prom/prometheus:latest
container_name: adic-testnet-prometheus
ports:
- "9090:9090"
volumes:
- ./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus-data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
networks:
- adic-testnet
profiles:
- monitoring
# Optional: Grafana for visualization
grafana:
image: grafana/grafana:latest
container_name: adic-testnet-grafana
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD:-admin}
- GF_USERS_ALLOW_SIGN_UP=false
networks:
- adic-testnet
profiles:
- monitoring
networks:
adic-testnet:
driver: bridge
volumes:
adic-testnet-data:
driver: local
prometheus-data:
driver: local
grafana-data:
driver: local