From c06b1496a36b25d4b12520186e61dc945b9ddb58 Mon Sep 17 00:00:00 2001 From: Up Date: Sun, 12 May 2024 08:11:36 +0200 Subject: [PATCH] add watchtower in example compose file --- docker-compose.Example.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docker-compose.Example.yml b/docker-compose.Example.yml index 0279c86..f1bcb73 100644 --- a/docker-compose.Example.yml +++ b/docker-compose.Example.yml @@ -10,6 +10,7 @@ services: - internal ports: - "8001:8001" + db: image: mariadb:11 restart: unless-stopped @@ -30,6 +31,22 @@ services: networks: - internal + # Watchtower is a service that will automatically update your running containers + # when a new image is available. This is useful for keeping your server up-to-date. + # see https://containrrr.dev/watchtower/ for more information. + watchtower: + image: containrrr/watchtower + container_name: watchtower + restart: always + security_opt: + - no-new-privileges:true + environment: + WATCHTOWER_CLEANUP: true + WATCHTOWER_SCHEDULE: "@midnight" + volumes: + - /etc/localtime:/etc/localtime:ro + - /var/run/docker.sock:/var/run/docker.sock + volumes: database: