diff --git a/watchtower/docker-compose.yml b/watchtower/docker-compose.yml index 569ac87..8ce293d 100644 --- a/watchtower/docker-compose.yml +++ b/watchtower/docker-compose.yml @@ -1,5 +1,11 @@ +# https://linuxiac.com/watchtower-automatically-update-docker-container-images/ + +services: + watchtower: image: containrrr/watchtower env_file: .env + mem_limit: 512m + restart: always volumes: - /var/run/docker.sock:/var/run/docker.sock environment: @@ -14,6 +20,4 @@ WATCHTOWER_NOTIFICATION_EMAIL_SERVER: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER} WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT} WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER} - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD} - mem_limit: 512m - restart: unless-stopped + WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD} \ No newline at end of file