1
compose/05_watchtower/.env
Normal file
1
compose/05_watchtower/.env
Normal file
@ -0,0 +1 @@
|
||||
COMPOSE_PROJECT_NAME=watchtower
|
34
compose/05_watchtower/docker-compose.yml
Normal file
34
compose/05_watchtower/docker-compose.yml
Normal file
@ -0,0 +1,34 @@
|
||||
---
|
||||
services:
|
||||
default:
|
||||
image: containrrr/watchtower:latest
|
||||
privileged: true
|
||||
environment:
|
||||
DOCKER_CONFIG: /config
|
||||
WATCHTOWER_POLL_INTERVAL: 86400
|
||||
WATCHTOWER_CLEANUP: 1
|
||||
WATCHTOWER_ROLLING_RESTART: 1
|
||||
WATCHTOWER_SCOPE: update
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /home/core/.docker:/config
|
||||
restart: always
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.scope=update"
|
||||
|
||||
http:
|
||||
image: containrrr/watchtower:latest
|
||||
privileged: true
|
||||
environment:
|
||||
DOCKER_CONFIG: /config
|
||||
WATCHTOWER_POLL_INTERVAL: 900
|
||||
WATCHTOWER_CLEANUP: 1
|
||||
WATCHTOWER_ROLLING_RESTART: 1
|
||||
WATCHTOWER_SCOPE: http
|
||||
volumes:
|
||||
- /home/core/.docker/:/config/
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
restart: always
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.scope=http"
|
||||
...
|
Reference in New Issue
Block a user