-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (64 loc) · 2.13 KB
/
docker-compose.yml
File metadata and controls
69 lines (64 loc) · 2.13 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
version: "3.8"
services:
simplex:
image: polytopelabs/hyperbridge-simplex:latest
build:
context: ../../..
dockerfile: packages/simplex/scripts/Dockerfile
container_name: hyperbridge-simplex
restart: unless-stopped
command: ["run", "-c", "/app/config/config.toml", "-p", "9090"]
volumes:
- ${CONFIG_PATH:-../config.toml}:/app/config/config.toml:ro
environment:
- NODE_ENV=production
networks:
- simplex-network
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://localhost:9090/health').then(r=>{if(!r.ok)throw 1})"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
prometheus:
image: prom/prometheus:latest
container_name: simplex-prometheus
restart: unless-stopped
volumes:
- ./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus-data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.retention.time=30d"
- "--web.enable-admin-api"
networks:
- simplex-network
ports:
- "${PROMETHEUS_PORT:-9091}:9090"
grafana:
image: grafana/grafana:latest
container_name: simplex-grafana
restart: unless-stopped
volumes:
- ./monitoring/grafana/provisioning:/etc/grafana/provisioning:ro
- ./monitoring/grafana/dashboards:/var/lib/grafana/dashboards:ro
- grafana-data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_USER:-admin}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD:-admin}
- GF_USERS_ALLOW_SIGN_UP=false
networks:
- simplex-network
ports:
- "${GRAFANA_PORT:-3420}:3000"
volumes:
prometheus-data:
grafana-data:
networks:
simplex-network:
driver: bridge