emanuelegori revised this gist . Go to revision
2 files changed, 1 insertion, 2 deletions
.env (file deleted)
@@ -1 +0,0 @@ | |||
1 | - | NTFY_TOKEN=<il_tuo_token> #necessario per NTFY |
docker-compose.yml
@@ -23,5 +23,5 @@ services: | |||
23 | 23 | WATCHTOWER_ROLLING_RESTART: true | |
24 | 24 | WATCHTOWER_TIMEOUT: 30s | |
25 | 25 | WATCHTOWER_LOG_FORMAT: pretty | |
26 | - | #WATCHTOWER_NOTIFICATION_URL: ntfy://:${NTFY_TOKEN}@ntfy.emanuelegori.uno/watchtower #notifica via NTFY | |
26 | + | #WATCHTOWER_NOTIFICATION_URL: ntfy://:tuo_token@ntfy.emanuelegori.uno/watchtower #notifica via NTFY | |
27 | 27 | restart: unless-stopped |
emanuelegori revised this gist . Go to revision
2 files changed, 2 insertions, 2 deletions
.env
@@ -1 +1 @@ | |||
1 | - | NTFY_TOKEN=<il_tuo_token> | |
1 | + | NTFY_TOKEN=<il_tuo_token> #necessario per NTFY |
docker-compose.yml
@@ -23,5 +23,5 @@ services: | |||
23 | 23 | WATCHTOWER_ROLLING_RESTART: true | |
24 | 24 | WATCHTOWER_TIMEOUT: 30s | |
25 | 25 | WATCHTOWER_LOG_FORMAT: pretty | |
26 | - | WATCHTOWER_NOTIFICATION_URL: ntfy://:${NTFY_TOKEN}@ntfy.emanuelegori.uno/watchtower ## ntfy://:TOKEN@ntfy.emanuelegori.uno/watchtower | |
26 | + | #WATCHTOWER_NOTIFICATION_URL: ntfy://:${NTFY_TOKEN}@ntfy.emanuelegori.uno/watchtower #notifica via NTFY | |
27 | 27 | restart: unless-stopped |
emanuelegori revised this gist . Go to revision
1 file changed, 2 insertions, 2 deletions
docker-compose.yml
@@ -3,8 +3,8 @@ services: | |||
3 | 3 | image: containrrr/watchtower:latest | |
4 | 4 | container_name: watchtower | |
5 | 5 | hostname: watchtower | |
6 | - | mem_limit: 128m | |
7 | - | mem_reservation: 50m | |
6 | + | mem_limit: 256m | |
7 | + | mem_reservation: 128m | |
8 | 8 | cpu_shares: 256 | |
9 | 9 | security_opt: | |
10 | 10 | - no-new-privileges=true |
emanuelegori revised this gist . Go to revision
1 file changed, 4 insertions, 5 deletions
docker-compose.yml
@@ -5,24 +5,23 @@ services: | |||
5 | 5 | hostname: watchtower | |
6 | 6 | mem_limit: 128m | |
7 | 7 | mem_reservation: 50m | |
8 | - | cpus: "0.5" | |
8 | + | cpu_shares: 256 | |
9 | 9 | security_opt: | |
10 | 10 | - no-new-privileges=true | |
11 | 11 | read_only: true | |
12 | - | tmpfs: | |
13 | - | - /tmp | |
14 | 12 | volumes: | |
15 | 13 | - /var/run/docker.sock:/var/run/docker.sock:ro | |
16 | 14 | environment: | |
17 | 15 | TZ: Europe/Rome | |
18 | 16 | WATCHTOWER_CLEANUP: true # Rimuove le vecchie immagini dopo l'aggiornamento | |
19 | 17 | WATCHTOWER_REMOVE_VOLUMES: false # Mantieni i volumi | |
18 | + | DOCKER_API_VERSION: 1.47 | |
20 | 19 | WATCHTOWER_INCLUDE_RESTARTING: true # Riavvia i contenitori dopo l'aggiornamento | |
21 | 20 | WATCHTOWER_INCLUDE_STOPPED: false # Non aggiornare i contenitori fermati | |
22 | - | WATCHTOWER_SCHEDULE: "0 0 3 * * *" # Aggiorna ogni giorno alle 3 del mattino | |
21 | + | WATCHTOWER_SCHEDULE: "0 3 * * * *" # Aggiorna ogni giorno alle 3 del mattino | |
23 | 22 | WATCHTOWER_LABEL_ENABLE: false | |
24 | 23 | WATCHTOWER_ROLLING_RESTART: true | |
25 | 24 | WATCHTOWER_TIMEOUT: 30s | |
26 | - | WATCHTOWER_HTTP_API_METRICS: false | |
25 | + | WATCHTOWER_LOG_FORMAT: pretty | |
27 | 26 | WATCHTOWER_NOTIFICATION_URL: ntfy://:${NTFY_TOKEN}@ntfy.emanuelegori.uno/watchtower ## ntfy://:TOKEN@ntfy.emanuelegori.uno/watchtower | |
28 | 27 | restart: unless-stopped |
emanuelegori revised this gist . Go to revision
No changes
emanuelegori revised this gist . Go to revision
2 files changed, 11 insertions, 20 deletions
.env(file created)
@@ -0,0 +1 @@ | |||
1 | + | NTFY_TOKEN=<il_tuo_token> |
docker-compose.yml
@@ -3,36 +3,26 @@ services: | |||
3 | 3 | image: containrrr/watchtower:latest | |
4 | 4 | container_name: watchtower | |
5 | 5 | hostname: watchtower | |
6 | - | networks: | |
7 | - | - npm-internal | |
8 | 6 | mem_limit: 128m | |
9 | 7 | mem_reservation: 50m | |
10 | - | cpu_shares: 256 | |
8 | + | cpus: "0.5" | |
11 | 9 | security_opt: | |
12 | 10 | - no-new-privileges=true | |
13 | 11 | read_only: true | |
12 | + | tmpfs: | |
13 | + | - /tmp | |
14 | 14 | volumes: | |
15 | 15 | - /var/run/docker.sock:/var/run/docker.sock:ro | |
16 | 16 | environment: | |
17 | 17 | TZ: Europe/Rome | |
18 | - | WATCHTOWER_CLEANUP: true # Remove old images after updating | |
19 | - | WATCHTOWER_REMOVE_VOLUMES: false # Remove attached volumes after updating | |
20 | - | DOCKER_API_VERSION: 1.47 # SSH docker version | |
21 | - | WATCHTOWER_INCLUDE_RESTARTING: true # Restart containers after update | |
22 | - | WATCHTOWER_INCLUDE_STOPPED: false # Update stopped containers | |
23 | - | WATCHTOWER_SCHEDULE: "0 0 */4 * * *" # Update & Scan containers every 2 hours | |
18 | + | WATCHTOWER_CLEANUP: true # Rimuove le vecchie immagini dopo l'aggiornamento | |
19 | + | WATCHTOWER_REMOVE_VOLUMES: false # Mantieni i volumi | |
20 | + | WATCHTOWER_INCLUDE_RESTARTING: true # Riavvia i contenitori dopo l'aggiornamento | |
21 | + | WATCHTOWER_INCLUDE_STOPPED: false # Non aggiornare i contenitori fermati | |
22 | + | WATCHTOWER_SCHEDULE: "0 0 3 * * *" # Aggiorna ogni giorno alle 3 del mattino | |
24 | 23 | WATCHTOWER_LABEL_ENABLE: false | |
25 | 24 | WATCHTOWER_ROLLING_RESTART: true | |
26 | 25 | WATCHTOWER_TIMEOUT: 30s | |
27 | - | WATCHTOWER_HTTP_API_METRICS: false # Metrics for Prometheus | |
28 | - | # WATCHTOWER_HTTP_API_TOKEN: mariushostingisthebest | |
29 | - | # Token for Prometheus #If you installed premtheus & Grafana using Marius guide | |
30 | - | # WATCHTOWER_LOG_FORMAT: pretty | |
31 | - | # Enable notifications for Watchtower using ntfy | |
32 | - | WATCHTOWER_NOTIFICATION_URL: ntfy://:TOKEN@ntfy.emanuelegori.uno/watchtower | |
26 | + | WATCHTOWER_HTTP_API_METRICS: false | |
27 | + | WATCHTOWER_NOTIFICATION_URL: ntfy://:${NTFY_TOKEN}@ntfy.emanuelegori.uno/watchtower ## ntfy://:TOKEN@ntfy.emanuelegori.uno/watchtower | |
33 | 28 | restart: unless-stopped | |
34 | - | ||
35 | - | networks: | |
36 | - | npm-internal: | |
37 | - | name: npm-internal | |
38 | - | external: true |
emanuelegori revised this gist . Go to revision
1 file changed, 3 insertions, 2 deletions
docker-compose.yml
@@ -27,8 +27,9 @@ services: | |||
27 | 27 | WATCHTOWER_HTTP_API_METRICS: false # Metrics for Prometheus | |
28 | 28 | # WATCHTOWER_HTTP_API_TOKEN: mariushostingisthebest | |
29 | 29 | # Token for Prometheus #If you installed premtheus & Grafana using Marius guide | |
30 | - | WATCHTOWER_LOG_FORMAT: pretty | |
31 | - | WATCHTOWER_NOTIFICATION_URL: ntfy://:tk_yubspe1qujk8lq4hsvs6h9uhwh4lr@ntfy.emanuelegori.uno/watchtower | |
30 | + | # WATCHTOWER_LOG_FORMAT: pretty | |
31 | + | # Enable notifications for Watchtower using ntfy | |
32 | + | WATCHTOWER_NOTIFICATION_URL: ntfy://:TOKEN@ntfy.emanuelegori.uno/watchtower | |
32 | 33 | restart: unless-stopped | |
33 | 34 | ||
34 | 35 | networks: |
emanuelegori revised this gist . Go to revision
No changes
emanuelegori revised this gist . Go to revision
1 file changed, 37 insertions
docker-compose.yml(file created)
@@ -0,0 +1,37 @@ | |||
1 | + | services: | |
2 | + | watchtower: | |
3 | + | image: containrrr/watchtower:latest | |
4 | + | container_name: watchtower | |
5 | + | hostname: watchtower | |
6 | + | networks: | |
7 | + | - npm-internal | |
8 | + | mem_limit: 128m | |
9 | + | mem_reservation: 50m | |
10 | + | cpu_shares: 256 | |
11 | + | security_opt: | |
12 | + | - no-new-privileges=true | |
13 | + | read_only: true | |
14 | + | volumes: | |
15 | + | - /var/run/docker.sock:/var/run/docker.sock:ro | |
16 | + | environment: | |
17 | + | TZ: Europe/Rome | |
18 | + | WATCHTOWER_CLEANUP: true # Remove old images after updating | |
19 | + | WATCHTOWER_REMOVE_VOLUMES: false # Remove attached volumes after updating | |
20 | + | DOCKER_API_VERSION: 1.47 # SSH docker version | |
21 | + | WATCHTOWER_INCLUDE_RESTARTING: true # Restart containers after update | |
22 | + | WATCHTOWER_INCLUDE_STOPPED: false # Update stopped containers | |
23 | + | WATCHTOWER_SCHEDULE: "0 0 */4 * * *" # Update & Scan containers every 2 hours | |
24 | + | WATCHTOWER_LABEL_ENABLE: false | |
25 | + | WATCHTOWER_ROLLING_RESTART: true | |
26 | + | WATCHTOWER_TIMEOUT: 30s | |
27 | + | WATCHTOWER_HTTP_API_METRICS: false # Metrics for Prometheus | |
28 | + | # WATCHTOWER_HTTP_API_TOKEN: mariushostingisthebest | |
29 | + | # Token for Prometheus #If you installed premtheus & Grafana using Marius guide | |
30 | + | WATCHTOWER_LOG_FORMAT: pretty | |
31 | + | WATCHTOWER_NOTIFICATION_URL: ntfy://:tk_yubspe1qujk8lq4hsvs6h9uhwh4lr@ntfy.emanuelegori.uno/watchtower | |
32 | + | restart: unless-stopped | |
33 | + | ||
34 | + | networks: | |
35 | + | npm-internal: | |
36 | + | name: npm-internal | |
37 | + | external: true |