-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
33 lines (32 loc) · 1013 Bytes
/
docker-compose.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
version: '3'
services:
prometheus:
env_file: .env
image: prom/prometheus
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/data:/data
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/data'
- '--storage.tsdb.retention.time=2y'
user: '1000'
restart: always
ports:
- 5090:9090
grafana:
env_file: .env
image: grafana/grafana
volumes:
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
- ./grafana/server.crt:/etc/grafana/server.crt
- ./grafana/server.key:/etc/grafana/server.key
- ./grafana/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml
- ./grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/dashboards.yml
- ./grafana/dashboards:/etc/grafana/provisioning/dashboards/dashboards
- ./grafana/data:/var/lib/grafana
user: '1000'
restart: always
ports:
- 443:3000
- 5000:3000