1
0
mirror of https://github.com/Chipazawra/v8-1c-cluster-pde.git synced 2024-11-24 08:22:19 +02:00
v8-1c-cluster-pde/docker-compose.yaml

98 lines
2.2 KiB
YAML
Raw Normal View History

2021-12-28 13:52:45 +02:00
version: '3.9'
2021-12-28 22:06:33 +02:00
networks:
monitoring:
driver: bridge
volumes:
prometheus_data: {}
grafana_data: {}
2021-12-28 13:52:45 +02:00
services:
2021-12-28 22:06:33 +02:00
prometheus:
2021-12-29 13:15:40 +02:00
image: prom/prometheus:v2.32.1
2021-12-28 22:06:33 +02:00
container_name: prometheus
volumes:
- ./prometheus:/etc/prometheus
- 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'
- '--storage.tsdb.retention.time=200h'
- '--web.enable-lifecycle'
restart: unless-stopped
expose:
- 9090
networks:
- monitoring
labels:
org.label-schema.group: "monitoring"
grafana:
2022-01-10 09:25:12 +02:00
image: grafana/grafana:8.1.5
2021-12-28 22:06:33 +02:00
container_name: grafana
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
environment:
- GF_SECURITY_ADMIN_USER=${ADMIN_USER}
- GF_SECURITY_ADMIN_PASSWORD=${ADMIN_PASSWORD}
- GF_USERS_ALLOW_SIGN_UP=false
restart: unless-stopped
expose:
- 3000
networks:
- monitoring
labels:
org.label-schema.group: "monitoring"
pde:
2021-12-28 13:52:45 +02:00
build: .
2021-12-28 22:06:33 +02:00
container_name: pde
2021-12-28 13:52:45 +02:00
environment:
2021-12-28 22:06:33 +02:00
- RAS_HOST=${RAS_HOST}
- RAS_PORT=${RAS_PORT}
2021-12-29 13:15:40 +02:00
- CLS_USER=${CLS_USER}
- CLS_PASS=${CLS_PASS}
- MODE=${MODE}
- PUSH_INTERVAL=${PUSH_INTERVAL}
- PUSH_HOST=${PUSH_HOST}
- PUSH_PORT=${PUSH_PORT}
2021-12-28 22:06:33 +02:00
restart: unless-stopped
expose:
- 9096
networks:
- monitoring
labels:
org.label-schema.group: "monitoring"
caddy:
image: stefanprodan/caddy
container_name: caddy
2021-12-28 13:52:45 +02:00
ports:
2021-12-28 22:06:33 +02:00
- "3000:3000"
- "9090:9090"
- "9096:9096"
volumes:
- ./caddy:/etc/caddy
environment:
- ADMIN_USER=${ADMIN_USER}
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
restart: unless-stopped
2021-12-29 11:31:50 +02:00
networks:
- monitoring
labels:
org.label-schema.group: "monitoring"
pushgateway:
image: prom/pushgateway:v1.2.0
container_name: pushgateway
restart: unless-stopped
expose:
- 9091
2021-12-28 22:06:33 +02:00
networks:
- monitoring
labels:
org.label-schema.group: "monitoring"