15 lines
365 B
YAML
15 lines
365 B
YAML
services:
|
|
prometheus:
|
|
image: prom/prometheus:latest
|
|
container_name: prometheus
|
|
networks:
|
|
nw-caddy:
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
volumes:
|
|
- ./config:/etc/prometheus
|
|
command:
|
|
- '--config.file=/etc/prometheus/prometheus.yaml'
|
|
- '--storage.tsdb.path=/prometheus'
|
|
restart: unless-stopped
|