31 lines
763 B
YAML
Executable File
31 lines
763 B
YAML
Executable File
services:
|
|
prometheus:
|
|
container_name: prometheus
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 256M
|
|
ports:
|
|
- 9090:9090
|
|
volumes:
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
|
- /prometheus/:/prometheus
|
|
command:
|
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
- '--storage.tsdb.path=/prometheus'
|
|
- '--storage.tsdb.retention.time=7200d'
|
|
- '--storage.tsdb.retention.size=0'
|
|
image: prom/prometheus
|
|
restart: unless-stopped
|
|
|
|
pve-exporter:
|
|
image: prompve/prometheus-pve-exporter:latest
|
|
container_name: prometheus-pve-exporter
|
|
ports:
|
|
- "9221:9221"
|
|
volumes:
|
|
- /opt/prometheus/pve.yml:/etc/prometheus/pve.yml:ro
|
|
restart: unless-stopped
|
|
|
|
networks: {}
|