-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
55 lines (55 loc) · 1.5 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
version: '3.8'
services:
db:
image: postgres:latest
container_name: kairos-db
# volumes:
# - ./postgresql-init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
POSTGRES_DB: kairos
POSTGRES_USER: kairos
POSTGRES_PASSWORD: changeme
ports:
- "5432:5432"
cctl:
container_name: kairos-cctl
image: rom3dius/cctl-node-network:1.5.6-kairos-0.0.1
ports:
- 25101:25101
- 11101:11101
- 14101:14101
- 18101:18101
healthcheck:
test: |
curl --location 'http://localhost:11101/rpc' \
--header 'Content-Type: application/json' \
--data '{
"id": "383766004",
"jsonrpc": "2.0",
"method": "info_get_status",
"params": []
}' | jq '.result.available_block_range.high' | grep -q '^1' && echo "Success" && exit 0 || echo "Error" && exit 1
interval: 5s
retries: 5
start_period: 5s
# prometheus:
# image: prom/prometheus:latest
# container_name: prometheus
#volumes:
# - ./.config/prometheus.yml:/etc/prometheus/prometheus.yml
# command:
# - '--config.file=/etc/prometheus/prometheus.yml'
# ports:
# - "9090:9090"
# grafana:
# image: grafana/grafana:latest
# container_name: grafana
# ports:
# - "3000:3000"
#volumes:
# - grafana_data:/var/lib/grafana
# environment:
# GF_SECURITY_ADMIN_USER: admin
# GF_SECURITY_ADMIN_PASSWORD: admin
#volumes:
# grafana_data: