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

23 lines
No EOL
584 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
networks:
- metrics
environment:
WATCHTOWER_HTTP_API_TOKEN: watchtower
WATCHTOWER_HTTP_API_METRICS: 'true'
logging:
driver: loki
options:
loki-url: "https://lokidoki:vEGH5Z5siWgcDkNknvCVzPCyqhHSBJCBjeBRZJvxUP8SdgfxJ6AqCGutCWugGsx5@loki.mrdev023.fr/loki/api/v1/push"
mode: non-blocking
networks:
metrics:
external: true