-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose-with-monitoring.yml
53 lines (50 loc) · 1.26 KB
/
docker-compose-with-monitoring.yml
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
# Starts the Sentinel service and connected monitoring services: Prometheus and Grafana.
version: '3'
services:
# the sentinel image is built from source
sentinel:
image: superfluidfinance/superfluid-sentinel
build: .
restart: unless-stopped
env_file: .env
environment:
- NODE_ENV=production
# hardcode the port inside the container
- METRICS_PORT=9100
ports:
- ${METRICS_PORT:-9100}:9100
expose:
- 9100
volumes:
- data:/app/data
deploy:
resources:
limits:
cpus: '0.50'
memory: 300M
reservations:
memory: 50M
prometheus:
image: prom/prometheus:v2.36.1
volumes:
- ./prometheus:/etc/prometheus
- prometheus_data:/prometheus
ports:
- ${PROMETHEUS_PORT:-9090}:9090
expose:
- ${PROMETHEUS_PORT:-9090}
grafana:
image: grafana/grafana:8.2.6
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
- ./grafana/dashboards/:/etc/grafana/dashboards
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
ports:
- ${GRAFANA_PORT:-3000}:3000
expose:
- ${GRAFANA_PORT:-3000}
volumes:
prometheus_data:
grafana_data:
data: