docker-stacks/watchtower/docker-compose.yml

20 lines
527 B
YAML
Raw Normal View History

2020-07-18 13:19:29 +00:00
version: '3.7'
services:
watchtower:
# https://hub.docker.com/r/containrrr/watchtower
# https://containrrr.dev/watchtower/
image: containrrr/watchtower:latest
container_name: watchtower
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/etc/localtime:/etc/localtime:ro"
2020-07-18 13:19:29 +00:00
env_file: .env
restart: unless-stopped
command: "${CONTAINERS_LIST}"
logging:
driver: "json-file"
options:
max-size: "${LOG_MAX_SIZE:-5m}"
max-file: "${LOG_MAX_FILE:-5}"