Initial commit
This commit is contained in:
commit
d1aeaef8cb
1 changed files with 54 additions and 0 deletions
54
compose.yaml
Normal file
54
compose.yaml
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
container_name: prometheus
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "9090:9090"
|
||||
volumes:
|
||||
- /srv/mon01/config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
||||
- /srv/mon01/data/prometheus:/prometheus
|
||||
command:
|
||||
- --config.file=/etc/prometheus/prometheus.yml
|
||||
- --storage.tsdb.path=/prometheus
|
||||
- --storage.tsdb.retention.time=30d
|
||||
- --web.enable-lifecycle
|
||||
networks:
|
||||
- monitoring
|
||||
|
||||
loki:
|
||||
image: grafana/loki:latest
|
||||
container_name: loki
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3100:3100"
|
||||
volumes:
|
||||
- /srv/mon01/config/loki/config.yml:/etc/loki/config.yml:ro
|
||||
- /srv/mon01/data/loki:/loki
|
||||
command: -config.file=/etc/loki/config.yml
|
||||
networks:
|
||||
- monitoring
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
container_name: grafana
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- /srv/mon01/data/grafana:/var/lib/grafana
|
||||
- /srv/mon01/config/grafana/provisioning:/etc/grafana/provisioning
|
||||
- /srv/mon01/config/grafana/dashboards:/var/lib/grafana/dashboards
|
||||
environment:
|
||||
- GF_SECURITY_ADMIN_USER=admin
|
||||
- GF_SECURITY_ADMIN_PASSWORD=CHANGEME
|
||||
- GF_USERS_ALLOW_SIGN_UP=false
|
||||
depends_on:
|
||||
- prometheus
|
||||
- loki
|
||||
networks:
|
||||
- monitoring
|
||||
|
||||
networks:
|
||||
monitoring:
|
||||
name: monitoring
|
||||
Loading…
Add table
Add a link
Reference in a new issue