2023-12-07 15:17:06 +08:00
|
|
|
services:
|
|
|
|
clickhouse:
|
|
|
|
container_name: ${CONTAINER_NAME}
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
ports:
|
|
|
|
- "${PANEL_APP_PORT_HTTP}:9090"
|
|
|
|
volumes:
|
|
|
|
- ./conf:/etc/prometheus/
|
|
|
|
- ./prometheus:/prometheus
|
2024-07-10 22:19:30 +08:00
|
|
|
image: prom/prometheus:v2.53.1
|
2023-12-07 15:17:06 +08:00
|
|
|
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=200h'
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|