Begin migration to v2 Step 2
This commit is contained in:
parent
b91292576f
commit
a7140e5a84
37 changed files with 19 additions and 74 deletions
23
roles/watchtower/templates/docker-compose.yml
Normal file
23
roles/watchtower/templates/docker-compose.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue