From cb5f3b5b6f4293ac98e501fdf449f79be1604b3c Mon Sep 17 00:00:00 2001 From: "stephane.david" Date: Thu, 26 Dec 2024 17:17:25 +0100 Subject: [PATCH] Initial version --- .idea/.gitignore | 3 +++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ .idea/watchtower.iml | 9 +++++++++ docker-compose.yml | 26 ++++++++++++++++++++++++++ 6 files changed, 58 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/watchtower.iml create mode 100644 docker-compose.yml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..aa31f27 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/watchtower.iml b/.idea/watchtower.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/watchtower.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..12c5a68 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,26 @@ +services: + watchtower: + image: containrrr/watchtower:latest + container_name: WATCHTOWER + hostname: watchtower + mem_limit: 512m + mem_reservation: 128m + cpu_shares: 512 + security_opt: + - no-new-privileges=true + read_only: true + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro + environment: + TZ: Europe/Bucharest + WATCHTOWER_CLEANUP: true # Remove old images after updating + WATCHTOWER_REMOVE_VOLUMES: false # Remove attached volumes after updating + DOCKER_API_VERSION: 1.45 # SSH docker version 1.41 for Docker engine version 20.10 - 1.43 for Docker engine version 24 - 1.45 for Docker engine version 26.1 + WATCHTOWER_INCLUDE_RESTARTING: true # Restart containers after update + WATCHTOWER_INCLUDE_STOPPED: false # Update stopped containers + WATCHTOWER_SCHEDULE: "0 0 */2 * * *" # Update & Scan containers every 2 hours + WATCHTOWER_LABEL_ENABLE: false + WATCHTOWER_ROLLING_RESTART: true + WATCHTOWER_TIMEOUT: 30s + WATCHTOWER_LOG_FORMAT: pretty + restart: on-failure:5 \ No newline at end of file