Watchtower: Simplify auto updates

This commit is contained in:
Tobias Manske 2022-09-25 14:55:45 +02:00
parent b616b8a854
commit 5c7a1d11c9
Signed by: tobias
GPG Key ID: E83C743C1FC2F79A
14 changed files with 1 additions and 70 deletions

View File

@ -9,8 +9,6 @@ services:
- "443:443" - "443:443"
- "80:80" - "80:80"
privileged: true privileged: true
labels:
- "com.centurylinklabs.watchtower.scope=update"
volumes: volumes:
- "/var/run/docker.sock:/var/run/docker.sock:z" - "/var/run/docker.sock:/var/run/docker.sock:z"
- "./traefik.yaml:/etc/traefik/traefik.yaml:Z,ro" - "./traefik.yaml:/etc/traefik/traefik.yaml:Z,ro"

View File

@ -36,7 +36,6 @@ services:
- "traefik.http.routers.keycloak.rule=Host(`auth.tobiasmanske.de`)" - "traefik.http.routers.keycloak.rule=Host(`auth.tobiasmanske.de`)"
- "traefik.http.routers.keycloak.entryPoints=websecure" - "traefik.http.routers.keycloak.entryPoints=websecure"
- "traefik.http.services.keycloak.loadbalancer.server.port=8080" - "traefik.http.services.keycloak.loadbalancer.server.port=8080"
- "com.centurylinklabs.watchtower.scope=update"
restart: always restart: always
networks: networks:
- backend - backend

View File

@ -4,7 +4,6 @@ services:
container_name: registry container_name: registry
restart: always restart: always
labels: labels:
- "com.centurylinklabs.watchtower.scope=update"
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.registry.rule=Host(`registry.tobiasmanske.de`)" - "traefik.http.routers.registry.rule=Host(`registry.tobiasmanske.de`)"
- "traefik.http.routers.registry.entryPoints=websecure" - "traefik.http.routers.registry.entryPoints=websecure"
@ -33,7 +32,6 @@ services:
- "traefik.http.routers.registryui.rule=Host(`registry-ui.tobiasmanske.de`)" - "traefik.http.routers.registryui.rule=Host(`registry-ui.tobiasmanske.de`)"
- "traefik.http.routers.registryui.entryPoints=websecure" - "traefik.http.routers.registryui.entryPoints=websecure"
- "traefik.http.services.registryui.loadbalancer.server.port=80" - "traefik.http.services.registryui.loadbalancer.server.port=80"
- "com.centurylinklabs.watchtower.scope=update"
networks: networks:
- gateway - gateway
- backend - backend

View File

@ -27,7 +27,6 @@ services:
- "traefik.http.routers.gitea.rule=Host(`git.tobiasmanske.de`)" - "traefik.http.routers.gitea.rule=Host(`git.tobiasmanske.de`)"
- "traefik.http.routers.gitea.entryPoints=websecure" - "traefik.http.routers.gitea.entryPoints=websecure"
- "traefik.http.services.gitea.loadbalancer.server.port=3000" - "traefik.http.services.gitea.loadbalancer.server.port=3000"
- "com.centurylinklabs.watchtower.scope=update"
ports: ports:
- "7779:22" - "7779:22"
depends_on: depends_on:
@ -36,8 +35,6 @@ services:
db: db:
image: postgres:14 image: postgres:14
restart: always restart: always
labels:
- "com.centurylinklabs.watchtower.scope=update"
environment: environment:
- POSTGRES_USER="{{ gitea.db.user }}" - POSTGRES_USER="{{ gitea.db.user }}"
- POSTGRES_PASSWORD="{{ gitea.db.password }}" - POSTGRES_PASSWORD="{{ gitea.db.password }}"
@ -69,7 +66,6 @@ services:
- "traefik.http.routers.drone.rule=Host(`drone.tobiasmanske.de`)" - "traefik.http.routers.drone.rule=Host(`drone.tobiasmanske.de`)"
- "traefik.http.routers.drone.entryPoints=websecure" - "traefik.http.routers.drone.entryPoints=websecure"
- "traefik.http.services.drone.loadbalancer.server.port=80" - "traefik.http.services.drone.loadbalancer.server.port=80"
- "com.centurylinklabs.watchtower.scope=update"
depends_on: depends_on:
- gitea - gitea
@ -77,8 +73,6 @@ services:
image: drone/drone-runner-docker:1.8 image: drone/drone-runner-docker:1.8
restart: always restart: always
privileged: true privileged: true
labels:
- "com.centurylinklabs.watchtower.scope=update"
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
environment: environment:

View File

@ -16,8 +16,6 @@ services:
volumes: volumes:
- ./wg0.conf:/config/wg0.conf:ro,z - ./wg0.conf:/config/wg0.conf:ro,z
- /lib/modules:/lib/modules:ro - /lib/modules:/lib/modules:ro
labels:
- "com.centurylinklabs.watchtower.scope=update"
ports: ports:
- 51820:51820/udp - 51820:51820/udp
sysctls: sysctls:

View File

@ -9,8 +9,6 @@ services:
- POSTGRES_DB={{ hedgedoc.db.name }} - POSTGRES_DB={{ hedgedoc.db.name }}
volumes: volumes:
- database:/var/lib/postgresql/data - database:/var/lib/postgresql/data
labels:
- "com.centurylinklabs.watchtower.scope=update"
restart: always restart: always
networks: networks:
- backend - backend

View File

@ -24,7 +24,6 @@ services:
- "traefik.http.routers.miniflux.rule=Host(`rss.tobiasmanske.de`)" - "traefik.http.routers.miniflux.rule=Host(`rss.tobiasmanske.de`)"
- "traefik.http.routers.miniflux.entryPoints=websecure" - "traefik.http.routers.miniflux.entryPoints=websecure"
- "traefik.http.services.miniflux.loadbalancer.server.port=8080" - "traefik.http.services.miniflux.loadbalancer.server.port=8080"
- "com.centurylinklabs.watchtower.scope=update"
networks: networks:
- backend - backend
- gateway - gateway

View File

@ -13,8 +13,6 @@ services:
- MYSQL_PASSWORD={{ nextcloud.db.password }} - MYSQL_PASSWORD={{ nextcloud.db.password }}
- MYSQL_DATABASE={{ nextcloud.db.name }} - MYSQL_DATABASE={{ nextcloud.db.name }}
- MYSQL_USER={{ nextcloud.db.user }} - MYSQL_USER={{ nextcloud.db.user }}
labels:
- "com.centurylinklabs.watchtower.scope=update"
networks: networks:
- backend - backend
@ -47,7 +45,6 @@ services:
- "traefik.http.middlewares.nextcloud-dav.replacepathregex.replacement=/remote.php/dav/" - "traefik.http.middlewares.nextcloud-dav.replacepathregex.replacement=/remote.php/dav/"
- "traefik.http.middlewares.compression.compress=true" - "traefik.http.middlewares.compression.compress=true"
- "traefik.http.routers.nextcloud.middlewares=nextcloud,nextcloud-dav,compression" - "traefik.http.routers.nextcloud.middlewares=nextcloud,nextcloud-dav,compression"
- "com.centurylinklabs.watchtower.scope=update"
volumes: volumes:
nc_config: nc_config:

View File

@ -20,7 +20,6 @@ services:
- "traefik.http.services.searxng.loadbalancer.server.port=8080" - "traefik.http.services.searxng.loadbalancer.server.port=8080"
- "traefik.http.middlewares.compression.compress=true" - "traefik.http.middlewares.compression.compress=true"
- "traefik.http.routers.searxng.middlewares=compression" - "traefik.http.routers.searxng.middlewares=compression"
- "com.centurylinklabs.watchtower.scope=update"
redis: redis:
container_name: redis container_name: redis
@ -36,25 +35,6 @@ services:
- SETGID - SETGID
- SETUID - SETUID
- DAC_OVERRIDE - DAC_OVERRIDE
labels:
- "com.centurylinklabs.watchtower.scope=update"
# morty:
# container_name: morty
# image: dalf/morty
# restart: always
# command: -timeout 6 -ipv6
# environment:
# - MORTY_KEY={{ search.morty.key }}
# - MORTY_ADDRESS=0.0.0.0:3030
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.morty.rule=Host(`search.tobiasmanske.de`) && PathPrefix(`/morty`)"
# - "traefik.http.routers.morty.entrypoints=websecure"
# - "traefik.http.services.morty.loadbalancer.server.port=3030"
# networks:
# - gateway
# - backend
networks: networks:
gateway: gateway:

View File

@ -14,8 +14,6 @@ services:
- ./config/key.pem:/var/syncthing/config/key.pem:ro,z - ./config/key.pem:/var/syncthing/config/key.pem:ro,z
- ./config/config.xml:/var/syncthing/config/config.xml:ro,z - ./config/config.xml:/var/syncthing/config/config.xml:ro,z
hostname: "Netcup" hostname: "Netcup"
labels:
- "com.centurylinklabs.watchtower.scope=update"
environment: environment:
- PUID=0 - PUID=0
- PGID=0 - PGID=0

View File

@ -9,7 +9,6 @@ services:
- "traefik.http.routers.tobiasmanskede.rule=Host(`tobiasmanske.de`) || Host(`www.tobiasmanske.de`)" - "traefik.http.routers.tobiasmanskede.rule=Host(`tobiasmanske.de`) || Host(`www.tobiasmanske.de`)"
- "traefik.http.routers.tobiasmanskede.entryPoints=websecure" - "traefik.http.routers.tobiasmanskede.entryPoints=websecure"
- "traefik.http.services.tobiasmanskede.loadbalancer.server.port=80" - "traefik.http.services.tobiasmanskede.loadbalancer.server.port=80"
- "com.centurylinklabs.watchtower.scope=http"
restart: always restart: always
networks: networks:
- gateway - gateway

View File

@ -11,7 +11,6 @@ services:
- "traefik.http.routers.caddyredir.rule={{ redirect.hosts | map(attribute='from') | map('regex_replace', '^(.*)$', 'Host(`\\1`)') | join(' || ') }}" - "traefik.http.routers.caddyredir.rule={{ redirect.hosts | map(attribute='from') | map('regex_replace', '^(.*)$', 'Host(`\\1`)') | join(' || ') }}"
- "traefik.http.routers.caddyredir.entryPoints=websecure" - "traefik.http.routers.caddyredir.entryPoints=websecure"
- "traefik.http.services.caddyredir.loadbalancer.server.port=80" - "traefik.http.services.caddyredir.loadbalancer.server.port=80"
- "com.centurylinklabs.watchtower.scope=update"
restart: always restart: always
networks: networks:
- gateway - gateway

View File

@ -11,7 +11,6 @@ services:
- "traefik.http.routers.thelounge.rule=Host(`lounge.tobiasmanske.de`)" - "traefik.http.routers.thelounge.rule=Host(`lounge.tobiasmanske.de`)"
- "traefik.http.routers.thelounge.entryPoints=websecure" - "traefik.http.routers.thelounge.entryPoints=websecure"
- "traefik.http.services.thelounge.loadbalancer.server.port=9000" - "traefik.http.services.thelounge.loadbalancer.server.port=9000"
- "com.centurylinklabs.watchtower.scope=update"
restart: always restart: always
networks: networks:
- gateway - gateway

View File

@ -6,10 +6,9 @@ services:
privileged: true privileged: true
environment: environment:
DOCKER_CONFIG: /config DOCKER_CONFIG: /config
WATCHTOWER_POLL_INTERVAL: 21600 WATCHTOWER_SCHEDULE: 0 42 * * * *
WATCHTOWER_CLEANUP: 1 WATCHTOWER_CLEANUP: 1
WATCHTOWER_ROLLING_RESTART: 1 WATCHTOWER_ROLLING_RESTART: 1
WATCHTOWER_SCOPE: update
WATCHTOWER_NOTIFICATIONS: slack WATCHTOWER_NOTIFICATIONS: slack
WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL: https://discord.com/api/webhooks/{{ watchtower.discord.webhook }}/slack WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL: https://discord.com/api/webhooks/{{ watchtower.discord.webhook }}/slack
WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER: Watchtower WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER: Watchtower
@ -19,28 +18,4 @@ services:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- /home/core/.docker:/config - /home/core/.docker:/config
restart: always restart: always
labels:
- "com.centurylinklabs.watchtower.scope=update"
http:
image: containrrr/watchtower:latest
privileged: true
container_name: HTTP
environment:
DOCKER_CONFIG: /config
WATCHTOWER_POLL_INTERVAL: 900
WATCHTOWER_CLEANUP: 1
WATCHTOWER_ROLLING_RESTART: 1
WATCHTOWER_SCOPE: http
WATCHTOWER_NOTIFICATIONS: slack
WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL: https://discord.com/api/webhooks/{{ watchtower.discord.webhook }}/slack
WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER: Watchtower
WATCHTOWER_NOTIFICATION_SLACK_ICON_EMOJI: ":whale:"
WATCHTOWER_NOTIFICATION_SLACK_ICON_URL: https://raw.githubusercontent.com/containrrr/watchtower/master/logo.png
volumes:
- /home/core/.docker/:/config/
- /var/run/docker.sock:/var/run/docker.sock
restart: always
labels:
- "com.centurylinklabs.watchtower.scope=http"
... ...