27 lines
667 B
YAML
27 lines
667 B
YAML
version: '3'
|
|
|
|
services:
|
|
prometheus:
|
|
image: prom/prometheus
|
|
restart: unless-stopped
|
|
command:
|
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
- '--storage.tsdb.retention.time=365d'
|
|
volumes:
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
|
- ./data-prometheus:/prometheus
|
|
ports:
|
|
- "9090:9090"
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
grafana:
|
|
image: grafana/grafana:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./data-grafana:/var/lib/grafana
|
|
ports:
|
|
- "9030:3000"
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|