- Add health-agent README with architecture, config, and deployment docs - Add deploy-monitoring-test.yml workflow (mirrors prod, test-runner, test storagebox paths) - Add health-agent service to docker-stack-monitoring.yml - Add .env.example with all runtime variables and .gitignore for generated files - Add config/generated/.gitkeep to track empty generated directory - Translate all Turkish group names and status page titles in monitors.yml to English - Remove users.yml.example (Dozzle was removed in previous commit)
144 lines
3.0 KiB
YAML
144 lines
3.0 KiB
YAML
services:
|
|
portainer-agent:
|
|
image: portainer/agent:lts
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
|
networks:
|
|
- portainer-net
|
|
deploy:
|
|
mode: global
|
|
placement:
|
|
constraints:
|
|
- node.platform.os == linux
|
|
restart_policy:
|
|
condition: any
|
|
delay: 5s
|
|
labels:
|
|
project: co.iklim
|
|
|
|
portainer:
|
|
image: portainer/portainer-ce:lts
|
|
command: -H tcp://tasks.portainer-agent:9001 --tlsskipverify
|
|
volumes:
|
|
- portainer_data:/data
|
|
networks:
|
|
- portainer-net
|
|
- iklimco-net
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
restart_policy:
|
|
condition: any
|
|
delay: 5s
|
|
labels:
|
|
project: co.iklim
|
|
|
|
node-exporter:
|
|
image: prom/node-exporter:latest
|
|
command:
|
|
- '--path.procfs=/host/proc'
|
|
- '--path.sysfs=/host/sys'
|
|
- '--path.rootfs=/rootfs'
|
|
volumes:
|
|
- /:/rootfs:ro
|
|
- /proc:/host/proc:ro
|
|
- /sys:/host/sys:ro
|
|
networks:
|
|
- iklimco-net
|
|
deploy:
|
|
mode: global
|
|
restart_policy:
|
|
condition: any
|
|
delay: 5s
|
|
labels:
|
|
project: co.iklim
|
|
|
|
cadvisor:
|
|
image: gcr.io/cadvisor/cadvisor:latest
|
|
volumes:
|
|
- /:/rootfs:ro
|
|
- /var/run:/var/run:ro
|
|
- /sys:/sys:ro
|
|
- /var/lib/docker:/var/lib/docker:ro
|
|
networks:
|
|
- iklimco-net
|
|
deploy:
|
|
mode: global
|
|
restart_policy:
|
|
condition: any
|
|
delay: 5s
|
|
labels:
|
|
project: co.iklim
|
|
|
|
loki:
|
|
image: ${CUSTOM_IMAGE_REGISTRY}${IMAGE_LOKI}
|
|
volumes:
|
|
- loki-vl:/loki
|
|
networks:
|
|
- iklimco-net
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.labels.type == service
|
|
restart_policy:
|
|
condition: any
|
|
delay: 5s
|
|
labels:
|
|
project: co.iklim
|
|
|
|
promtail:
|
|
image: ${CUSTOM_IMAGE_REGISTRY}${IMAGE_PROMTAIL}
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
networks:
|
|
- iklimco-net
|
|
deploy:
|
|
mode: global
|
|
restart_policy:
|
|
condition: any
|
|
delay: 5s
|
|
labels:
|
|
project: co.iklim
|
|
|
|
health-agent:
|
|
image: ${CUSTOM_IMAGE_REGISTRY}${IMAGE_HEALTH_AGENT}
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- ${HEALTH_AGENT_CONFIG_GENERATED_DIR}:/app/config/generated
|
|
- /mnt/storagebox:/mnt/storagebox:ro
|
|
env_file:
|
|
- ${HEALTH_AGENT_ENV_FILE}
|
|
networks:
|
|
- iklimco-net
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
restart_policy:
|
|
condition: any
|
|
delay: 10s
|
|
update_config:
|
|
parallelism: 1
|
|
order: stop-first
|
|
labels:
|
|
project: co.iklim
|
|
|
|
networks:
|
|
portainer-net:
|
|
driver: overlay
|
|
attachable: true
|
|
iklimco-net:
|
|
external: true
|
|
|
|
volumes:
|
|
portainer_data:
|
|
loki-vl:
|