1
0
Fork 0
myserver-configuration/roles/watchtower/templates/docker-compose.yml

24 lines
655 B
YAML
Raw Normal View History

2023-09-23 11:00:21 +02:00
services:
watchtower:
image: containrrr/watchtower:latest
restart: unless-stopped
2023-09-23 11:00:21 +02:00
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2023-11-21 21:18:33 +01:00
- /root/.docker/config.json:/config.json:ro
2023-09-25 15:20:32 +02:00
networks:
- metrics
environment:
WATCHTOWER_HTTP_API_TOKEN: watchtower
WATCHTOWER_HTTP_API_METRICS: 'true'
2023-10-12 20:59:55 +02:00
WATCHTOWER_POLL_INTERVAL: 1
2023-09-25 13:59:43 +02:00
logging:
driver: loki
options:
loki-url: "https://lokidoki:vEGH5Z5siWgcDkNknvCVzPCyqhHSBJCBjeBRZJvxUP8SdgfxJ6AqCGutCWugGsx5@loki.mrdev023.fr/loki/api/v1/push"
2023-09-25 15:20:32 +02:00
mode: non-blocking
networks:
metrics:
2023-10-12 20:59:55 +02:00
external: true