From 2641b5d0908aa65e4d93df89162f93722753656c Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 23 Oct 2024 18:21:54 +0200 Subject: [PATCH] docker-compose: set restart to unless_stopped --- docker-compose/act-runner/docker-compose.yml.j2 | 2 +- docker-compose/gramps/docker-compose.yml.j2 | 4 ++-- docker-compose/httpd/docker-compose.yml.j2 | 4 ++-- docker-compose/miniflux/docker-compose.yml.j2 | 6 +++--- docker-compose/navidrome/docker-compose.yml.j2 | 2 +- docker-compose/nextcloud/docker-compose.yml.j2 | 8 ++++---- docker-compose/postfix/docker-compose.yml.j2 | 2 +- docker-compose/registry/docker-compose.yml.j2 | 6 +++--- docker-compose/routeros-config-export/docker-compose.yml | 2 +- docker-compose/traefik/docker-compose.yml.j2 | 4 ++-- .../unifi-network-application/docker-compose.yml.j2 | 4 ++-- docker-compose/wiki/docker-compose.yml.j2 | 2 +- 12 files changed, 23 insertions(+), 23 deletions(-) diff --git a/docker-compose/act-runner/docker-compose.yml.j2 b/docker-compose/act-runner/docker-compose.yml.j2 index 2d06f204..a442a4f3 100644 --- a/docker-compose/act-runner/docker-compose.yml.j2 +++ b/docker-compose/act-runner/docker-compose.yml.j2 @@ -4,7 +4,7 @@ services: runner: container_name: act-runner image: gitea/act_runner - restart: always + restart: unless-stopped pull_policy: missing volumes: - act_runner_data:/data diff --git a/docker-compose/gramps/docker-compose.yml.j2 b/docker-compose/gramps/docker-compose.yml.j2 index a5828811..efdae2bf 100644 --- a/docker-compose/gramps/docker-compose.yml.j2 +++ b/docker-compose/gramps/docker-compose.yml.j2 @@ -3,7 +3,7 @@ services: grampsweb: &grampsweb container_name: grampsweb image: ghcr.io/gramps-project/grampsweb:v24.8.0 # version - restart: always + restart: unless-stopped pull_policy: missing ports: - "6483:5000" # host:docker @@ -45,7 +45,7 @@ services: grampsweb_redis: image: redis:7.4.1-alpine container_name: grampsweb_redis - restart: always + restart: unless-stopped pull_policy: missing healthcheck: test: ["CMD", "redis-cli", "ping"] diff --git a/docker-compose/httpd/docker-compose.yml.j2 b/docker-compose/httpd/docker-compose.yml.j2 index 2440e204..6039d32b 100644 --- a/docker-compose/httpd/docker-compose.yml.j2 +++ b/docker-compose/httpd/docker-compose.yml.j2 @@ -2,7 +2,7 @@ services: httpd-registry: container_name: "httpd-registry" image: "registry.mgrote.net/httpd:latest" - restart: always + restart: unless-stopped pull_policy: missing volumes: - uploads:/usr/local/apache2/htdocs/ @@ -13,7 +13,7 @@ services: python-api-server: container_name: httpd-api image: "registry.mgrote.net/python-api-server:latest" - restart: always + restart: unless-stopped pull_policy: missing ports: - "5040:5000" diff --git a/docker-compose/miniflux/docker-compose.yml.j2 b/docker-compose/miniflux/docker-compose.yml.j2 index 4f0b7040..b32930fb 100644 --- a/docker-compose/miniflux/docker-compose.yml.j2 +++ b/docker-compose/miniflux/docker-compose.yml.j2 @@ -3,7 +3,7 @@ services: miniflux: container_name: "mf-frontend" image: "ghcr.io/miniflux/miniflux:2.2.0" - restart: always + restart: unless-stopped pull_policy: missing depends_on: - mf-db17 @@ -35,7 +35,7 @@ services: mf-db17: container_name: "mf-db" image: "postgres:17.0" - restart: always + restart: unless-stopped pull_policy: missing environment: POSTGRES_USER: miniflux @@ -56,7 +56,7 @@ services: container_name: mf-filter depends_on: - miniflux - restart: always + restart: unless-stopped pull_policy: missing environment: TZ: Europe/Berlin diff --git a/docker-compose/navidrome/docker-compose.yml.j2 b/docker-compose/navidrome/docker-compose.yml.j2 index c19cf8c8..1fc4fbed 100644 --- a/docker-compose/navidrome/docker-compose.yml.j2 +++ b/docker-compose/navidrome/docker-compose.yml.j2 @@ -3,7 +3,7 @@ services: navidrome-mg: container_name: "navidrome-mg" image: "deluan/navidrome:0.53.3" - restart: always + restart: unless-stopped pull_policy: missing environment: ND_LOGLEVEL: info diff --git a/docker-compose/nextcloud/docker-compose.yml.j2 b/docker-compose/nextcloud/docker-compose.yml.j2 index 99b46dcb..b313a8ba 100644 --- a/docker-compose/nextcloud/docker-compose.yml.j2 +++ b/docker-compose/nextcloud/docker-compose.yml.j2 @@ -4,7 +4,7 @@ services: image: "mariadb:11.5.2" container_name: nextcloud-db command: --transaction-isolation=READ-COMMITTED --log-bin=ROW --innodb_read_only_compressed=OFF - restart: always + restart: unless-stopped pull_policy: missing volumes: - /etc/localtime:/etc/localtime:ro @@ -44,7 +44,7 @@ services: hostname: nextcloud-redis networks: - intern - restart: always + restart: unless-stopped pull_policy: missing command: "redis-server --requirepass {{ lookup('viczem.keepass.keepass', 'nextcloud_redis_host_password', 'password') }}" healthcheck: @@ -57,7 +57,7 @@ services: nextcloud-cron: container_name: nextcloud-cron image: "registry.mgrote.net/nextcloud-cronjob:latest" - restart: always + restart: unless-stopped pull_policy: missing network_mode: none volumes: @@ -71,7 +71,7 @@ services: nextcloud-app: image: "nextcloud:30.0.1" container_name: nextcloud-app - restart: always + restart: unless-stopped pull_policy: missing depends_on: - nextcloud-db diff --git a/docker-compose/postfix/docker-compose.yml.j2 b/docker-compose/postfix/docker-compose.yml.j2 index 4d70850c..dc005e5f 100644 --- a/docker-compose/postfix/docker-compose.yml.j2 +++ b/docker-compose/postfix/docker-compose.yml.j2 @@ -2,7 +2,7 @@ services: postfix: image: "registry.mgrote.net/postfix:latest" container_name: postfix - restart: always + restart: unless-stopped pull_policy: missing ports: - 1025:25 diff --git a/docker-compose/registry/docker-compose.yml.j2 b/docker-compose/registry/docker-compose.yml.j2 index 21d4e400..a6e3096d 100644 --- a/docker-compose/registry/docker-compose.yml.j2 +++ b/docker-compose/registry/docker-compose.yml.j2 @@ -1,6 +1,6 @@ services: oci-registry: - restart: always + restart: unless-stopped pull_policy: missing container_name: oci-registry image: "registry:2.8.3" @@ -56,7 +56,7 @@ services: container_name: oci-registry-redis networks: - intern - restart: always + restart: unless-stopped pull_policy: missing environment: REDIS_PASSWORD: "{{ lookup('viczem.keepass.keepass', 'oci-registry-redis-pw', 'password') }}" @@ -68,7 +68,7 @@ services: retries: 3 oci-registry-ui: - restart: always + restart: unless-stopped pull_policy: missing # url: registry.mgrote.net/ui/index.html image: "joxit/docker-registry-ui:2.5.7" diff --git a/docker-compose/routeros-config-export/docker-compose.yml b/docker-compose/routeros-config-export/docker-compose.yml index bf68b02a..eaebdaa4 100644 --- a/docker-compose/routeros-config-export/docker-compose.yml +++ b/docker-compose/routeros-config-export/docker-compose.yml @@ -1,7 +1,7 @@ services: routeros-config-export: container_name: routeros-config-export - restart: always + restart: unless-stopped pull_policy: missing image: "registry.mgrote.net/routeros-config-export:latest" volumes: diff --git a/docker-compose/traefik/docker-compose.yml.j2 b/docker-compose/traefik/docker-compose.yml.j2 index e4f2fc66..2a85701f 100644 --- a/docker-compose/traefik/docker-compose.yml.j2 +++ b/docker-compose/traefik/docker-compose.yml.j2 @@ -3,7 +3,7 @@ services: traefik: container_name: traefik image: "traefik:v3.1.6" - restart: always + restart: unless-stopped pull_policy: missing volumes: - /var/run/docker.sock:/var/run/docker.sock:ro @@ -27,7 +27,7 @@ services: ######## nforwardauth ######## nforwardauth: - restart: always + restart: unless-stopped pull_policy: missing image: "nosduco/nforwardauth:v1.4.0" container_name: traefik-nforwardauth diff --git a/docker-compose/unifi-network-application/docker-compose.yml.j2 b/docker-compose/unifi-network-application/docker-compose.yml.j2 index 88ac834d..85eabbcf 100644 --- a/docker-compose/unifi-network-application/docker-compose.yml.j2 +++ b/docker-compose/unifi-network-application/docker-compose.yml.j2 @@ -26,7 +26,7 @@ services: - 8880:8880 #optional - 6789:6789 #optional - 5514:5514/udp #optional - restart: always + restart: unless-stopped pull_policy: missing networks: - postfix @@ -49,7 +49,7 @@ services: container_name: unifi-db volumes: - db-data:/data/db - restart: always + restart: unless-stopped pull_policy: missing environment: MARIADB_AUTO_UPGRADE: "1" diff --git a/docker-compose/wiki/docker-compose.yml.j2 b/docker-compose/wiki/docker-compose.yml.j2 index fcf8d5e2..e3339e9a 100644 --- a/docker-compose/wiki/docker-compose.yml.j2 +++ b/docker-compose/wiki/docker-compose.yml.j2 @@ -2,7 +2,7 @@ services: wiki-webserver: container_name: wiki-webserver image: "registry.mgrote.net/httpd:latest" - restart: always + restart: unless-stopped pull_policy: missing networks: - traefik