2023-12-13 21:49:37 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
monitoring:
|
|
|
|
driver: bridge
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
prometheus_data: {}
|
|
|
|
|
|
|
|
services:
|
|
|
|
grafana:
|
|
|
|
image: grafana/grafana-enterprise
|
|
|
|
container_name: grafana
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
networks:
|
|
|
|
- monitoring
|
|
|
|
|
|
|
|
prometheus:
|
|
|
|
image: prom/prometheus:latest
|
|
|
|
container_name: prometheus
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
|
|
|
- prometheus_data:/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'
|
|
|
|
- '--web.enable-lifecycle'
|
|
|
|
expose:
|
|
|
|
- 9090
|
|
|
|
networks:
|
|
|
|
- monitoring
|
2024-02-02 18:21:11 +00:00
|
|
|
docker-host:
|
|
|
|
image: qoomon/docker-host
|
|
|
|
cap_add: [ 'NET_ADMIN', 'NET_RAW' ]
|
|
|
|
mem_limit: 8M
|
|
|
|
restart: on-failure
|
|
|
|
networks:
|
|
|
|
- monitoring
|