From dfbc8e58a9d2104de192e5571a9776578a23132c Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Sun, 8 Sep 2024 17:45:00 +0200 Subject: [PATCH] USe unless-stopped instead of always --- playbooks/files/z9/configs/uptime-kuma/compose.yaml | 2 +- .../templates/chaosknoten/configs/ccchoir/compose.yaml.j2 | 4 ++-- .../chaosknoten/configs/hackertours/compose.yaml.j2 | 8 ++++---- .../chaosknoten/configs/keycloak/compose.yaml.j2 | 8 ++++---- .../templates/chaosknoten/configs/pad/compose.yaml.j2 | 4 ++-- .../templates/chaosknoten/configs/pretalx/compose.yaml.j2 | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/playbooks/files/z9/configs/uptime-kuma/compose.yaml b/playbooks/files/z9/configs/uptime-kuma/compose.yaml index 6101aa6..11482de 100644 --- a/playbooks/files/z9/configs/uptime-kuma/compose.yaml +++ b/playbooks/files/z9/configs/uptime-kuma/compose.yaml @@ -10,7 +10,7 @@ services: uptime-kuma: image: louislam/uptime-kuma:1 - restart: always + restart: unless-stopped volumes: - "./uptime-kuma-data:/app/data" ports: diff --git a/playbooks/templates/chaosknoten/configs/ccchoir/compose.yaml.j2 b/playbooks/templates/chaosknoten/configs/ccchoir/compose.yaml.j2 index d87b51e..f7cc6e8 100644 --- a/playbooks/templates/chaosknoten/configs/ccchoir/compose.yaml.j2 +++ b/playbooks/templates/chaosknoten/configs/ccchoir/compose.yaml.j2 @@ -15,7 +15,7 @@ services: - database:/var/lib/mysql networks: backend: - restart: always + restart: unless-stopped app: image: docker.io/library/wordpress:6-php8.1 @@ -32,7 +32,7 @@ services: networks: backend: frontend: - restart: always + restart: unless-stopped depends_on: - database diff --git a/playbooks/templates/chaosknoten/configs/hackertours/compose.yaml.j2 b/playbooks/templates/chaosknoten/configs/hackertours/compose.yaml.j2 index 5f065bd..8f67299 100644 --- a/playbooks/templates/chaosknoten/configs/hackertours/compose.yaml.j2 +++ b/playbooks/templates/chaosknoten/configs/hackertours/compose.yaml.j2 @@ -10,7 +10,7 @@ services: - database:/var/lib/postgresql/data networks: backend: - restart: always + restart: unless-stopped redis: image: docker.io/redis:7 @@ -20,7 +20,7 @@ services: - redis:/rdata # run redis-server, save a snapshot every 60 seconds if there has been at least 1 write command: ["redis-server", "--save", "60", "1"] - restart: always + restart: unless-stopped networks: backend: @@ -32,7 +32,7 @@ services: volumes: - ./configs/pretix.cfg:/etc/pretix/pretix.cfg - pretix:/data - restart: always + restart: unless-stopped networks: backend: frontend: @@ -41,7 +41,7 @@ services: image: gitlab-cr.hamburg.ccc.de/ccchh/hackertours/hackertours:latest ports: - "8888:80" - restart: always + restart: unless-stopped networks: frontend: diff --git a/playbooks/templates/chaosknoten/configs/keycloak/compose.yaml.j2 b/playbooks/templates/chaosknoten/configs/keycloak/compose.yaml.j2 index 0ec3b36..f6b293d 100644 --- a/playbooks/templates/chaosknoten/configs/keycloak/compose.yaml.j2 +++ b/playbooks/templates/chaosknoten/configs/keycloak/compose.yaml.j2 @@ -47,7 +47,7 @@ services: db: image: postgres:15.2 - restart: always + restart: unless-stopped networks: - keycloak volumes: @@ -60,7 +60,7 @@ services: id-invite-web: image: git.hamburg.ccc.de/ccchh/id-invite/id-invite:latest command: web - restart: always + restart: unless-stopped networks: - web - email @@ -86,7 +86,7 @@ services: id-invite-email: image: git.hamburg.ccc.de/ccchh/id-invite/id-invite:latest command: email - restart: always + restart: unless-stopped networks: - email - web @@ -101,7 +101,7 @@ services: id-invite-keycloak: image: git.hamburg.ccc.de/ccchh/id-invite/id-invite:latest command: keycloak - restart: always + restart: unless-stopped networks: - keycloak environment: diff --git a/playbooks/templates/chaosknoten/configs/pad/compose.yaml.j2 b/playbooks/templates/chaosknoten/configs/pad/compose.yaml.j2 index 23c1dcb..537cda0 100644 --- a/playbooks/templates/chaosknoten/configs/pad/compose.yaml.j2 +++ b/playbooks/templates/chaosknoten/configs/pad/compose.yaml.j2 @@ -10,7 +10,7 @@ services: - "POSTGRES_DB=hedgedoc" volumes: - database:/var/lib/postgresql/data - restart: always + restart: unless-stopped app: #image: quay.io/hedgedoc/hedgedoc:1.9.9 @@ -42,7 +42,7 @@ services: - uploads:/hedgedoc/public/uploads ports: - "127.0.0.1:3000:3000" - restart: always + restart: unless-stopped depends_on: - database diff --git a/playbooks/templates/chaosknoten/configs/pretalx/compose.yaml.j2 b/playbooks/templates/chaosknoten/configs/pretalx/compose.yaml.j2 index add5c0f..627a981 100644 --- a/playbooks/templates/chaosknoten/configs/pretalx/compose.yaml.j2 +++ b/playbooks/templates/chaosknoten/configs/pretalx/compose.yaml.j2 @@ -10,7 +10,7 @@ services: - "POSTGRES_DB=pretalx" volumes: - database:/var/lib/postgresql/data - restart: always + restart: unless-stopped redis: image: redis:latest @@ -20,7 +20,7 @@ services: static: image: docker.io/library/nginx - restart: always + restart: unless-stopped volumes: - public:/usr/share/nginx/html ports: