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

25 lines
669 B
Django/Jinja

version: '3'
services:
watchtower:
image: containrrr/watchtower:latest
restart: unless-stopped
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/config.json:ro
networks:
- metrics
environment:
WATCHTOWER_HTTP_API_TOKEN: watchtower
WATCHTOWER_HTTP_API_METRICS: 'true'
WATCHTOWER_POLL_INTERVAL: 1
logging:
driver: loki
options:
loki-url: "https://lokidoki:vEGH5Z5siWgcDkNknvCVzPCyqhHSBJCBjeBRZJvxUP8SdgfxJ6AqCGutCWugGsx5@loki.mrdev023.fr/loki/api/v1/push"
mode: non-blocking
networks:
metrics:
external: true