thedocks/prometheus/docker-compose.yml

17 lines
331 B
YAML
Raw Normal View History

2022-04-02 17:56:21 +01:00
version: '3'
services:
prometheus:
2022-04-02 21:54:05 +01:00
container_name: prometheus
2022-04-02 17:56:21 +01:00
image: prom/prometheus:v2.34.0
ports:
- 9000:9090
volumes:
2022-04-02 21:34:21 +01:00
- ./prometheus:/etc/prometheus
2022-04-02 17:56:21 +01:00
- prometheus-data:/prometheus
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
volumes:
prometheus-data: