-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.ci.yml
More file actions
81 lines (77 loc) · 2.32 KB
/
Copy pathdocker-compose.ci.yml
File metadata and controls
81 lines (77 loc) · 2.32 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
# Docker Compose for CI testing with pre-built images
# Uses CLAD_IMAGE environment variable to specify the image
#
# Usage:
# export CLAD_IMAGE=ghcr.io/clad-sovereign/clad-node:latest
# docker compose -f docker-compose.ci.yml up -d
services:
alice:
image: ${CLAD_IMAGE:-ghcr.io/clad-sovereign/clad-node:latest}
container_name: clad-alice
user: root # CI only: ensures write access to volumes
ports:
- "9944:9944" # WebSocket RPC
- "9933:9933" # HTTP RPC
- "30333:30333" # P2P
- "9615:9615" # Prometheus
command:
- "--alice"
- "--validator"
- "--chain=local"
- "--unsafe-rpc-external"
- "--rpc-cors=all"
- "--rpc-methods=Safe"
- "--prometheus-external"
- "--node-key=0000000000000000000000000000000000000000000000000000000000000001"
- "--base-path=/clad-node/data"
volumes:
- alice-data:/clad-node/data
networks:
- clad-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9944/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 120s
bob:
image: ${CLAD_IMAGE:-ghcr.io/clad-sovereign/clad-node:latest}
container_name: clad-bob
user: root # CI only: ensures write access to volumes
ports:
- "9945:9944" # WebSocket RPC (different host port)
- "9934:9933" # HTTP RPC (different host port)
- "30334:30333" # P2P (different host port)
- "9616:9615" # Prometheus (different host port)
command:
- "--bob"
- "--validator"
- "--chain=local"
- "--unsafe-rpc-external"
- "--rpc-cors=all"
- "--rpc-methods=Safe"
- "--prometheus-external"
- "--node-key=0000000000000000000000000000000000000000000000000000000000000002"
- "--base-path=/clad-node/data"
- "--bootnodes=/dns/alice/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp"
volumes:
- bob-data:/clad-node/data
networks:
- clad-network
depends_on:
alice:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9944/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 120s
volumes:
alice-data:
bob-data:
networks:
clad-network:
driver: bridge