mirror of
https://github.com/dominikhoebert/docker-projects.git
synced 2025-07-21 20:47:05 +00:00
24 lines
494 B
YAML
24 lines
494 B
YAML
|
|
||
|
name: prometheus
|
||
|
|
||
|
services:
|
||
|
prometheus:
|
||
|
image: docker.io/prom/prometheus
|
||
|
container_name: prometheus
|
||
|
ports:
|
||
|
- 9090:9090
|
||
|
command: "--config.file=/etc/prometheus/prometheus.yaml --web.enable-remote-write-receiver"
|
||
|
volumes:
|
||
|
- ./config/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro
|
||
|
- prometheus-data:/prometheus
|
||
|
restart: unless-stopped
|
||
|
networks:
|
||
|
- proxy
|
||
|
|
||
|
networks:
|
||
|
proxy:
|
||
|
external: true
|
||
|
|
||
|
volumes:
|
||
|
prometheus-data:
|
||
|
driver: local
|