mirror of
https://github.com/acepanel/templates.git
synced 2026-02-04 04:59:57 +08:00
27 lines
766 B
YAML
27 lines
766 B
YAML
services:
|
|
prometheus:
|
|
image: prom/prometheus:v3.9.1
|
|
restart: unless-stopped
|
|
networks:
|
|
- acepanel-network
|
|
ports:
|
|
- "${PROMETHEUS_PORT_HTTP}:9090"
|
|
volumes:
|
|
- ./conf:/etc/prometheus/
|
|
- ./prometheus:/prometheus
|
|
command:
|
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
- '--storage.tsdb.path=/prometheus'
|
|
- '--web.console.libraries=/etc/prometheus/console_libraries'
|
|
- '--web.console.templates=/etc/prometheus/consoles'
|
|
- '--storage.tsdb.retention.time=200h'
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -qO- http://localhost:9090/-/healthy || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 30s
|
|
networks:
|
|
acepanel-network:
|
|
external: true
|