From e45e331b03b22659a84a4e4cb1d09f3479966311 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Wed, 20 Nov 2024 18:17:47 +0100 Subject: [PATCH] don't destroy containers before starting the service --- roles/authentik/templates/authentik.service.j2 | 2 -- roles/hedgedoc/templates/hedgedoc.service.j2 | 2 -- roles/vaultwarden/templates/vaultwarden.service.j2 | 2 -- 3 files changed, 6 deletions(-) diff --git a/roles/authentik/templates/authentik.service.j2 b/roles/authentik/templates/authentik.service.j2 index 7968a4f..e9b16d6 100644 --- a/roles/authentik/templates/authentik.service.j2 +++ b/roles/authentik/templates/authentik.service.j2 @@ -15,8 +15,6 @@ TimeoutStartSec=1200 WorkingDirectory=/opt/authentik -# Make sure no old containers are running -ExecStartPre=/usr/bin/docker-compose down -v # Update images ExecStartPre=-/usr/bin/docker-compose pull --quiet diff --git a/roles/hedgedoc/templates/hedgedoc.service.j2 b/roles/hedgedoc/templates/hedgedoc.service.j2 index 5cbdbda..74786b1 100644 --- a/roles/hedgedoc/templates/hedgedoc.service.j2 +++ b/roles/hedgedoc/templates/hedgedoc.service.j2 @@ -15,8 +15,6 @@ TimeoutStartSec=1200 WorkingDirectory=/opt/hedgedoc -# Make sure no old containers are running -ExecStartPre=/usr/bin/docker-compose down -v # Update images ExecStartPre=-/usr/bin/docker-compose pull --quiet diff --git a/roles/vaultwarden/templates/vaultwarden.service.j2 b/roles/vaultwarden/templates/vaultwarden.service.j2 index 067ab21..ab8094e 100644 --- a/roles/vaultwarden/templates/vaultwarden.service.j2 +++ b/roles/vaultwarden/templates/vaultwarden.service.j2 @@ -15,8 +15,6 @@ TimeoutStartSec=1200 WorkingDirectory=/opt/vaultwarden -# Make sure no old containers are running -ExecStartPre=/usr/bin/docker-compose down -v # Update images ExecStartPre=-/usr/bin/docker-compose pull --quiet