docker-stacks/watchtower/docker-compose.yml

20 lines
527 B
YAML

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"
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}"