From 4a8f51ba6cd2d109fa0118b4c0b2ca5b50fa0eff Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Wed, 20 Nov 2024 18:18:05 +0100 Subject: [PATCH] don't destroy containers before starting the service --- roles/searxng/templates/searxng.service.j2 | 2 -- roles/speedtest/templates/speedtest.service.j2 | 2 -- roles/tileserver/templates/tileserver.service.j2 | 3 --- 3 files changed, 7 deletions(-) diff --git a/roles/searxng/templates/searxng.service.j2 b/roles/searxng/templates/searxng.service.j2 index e7520d9..4febeda 100644 --- a/roles/searxng/templates/searxng.service.j2 +++ b/roles/searxng/templates/searxng.service.j2 @@ -15,8 +15,6 @@ TimeoutStartSec=1200 WorkingDirectory=/opt/searxng -# 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/speedtest/templates/speedtest.service.j2 b/roles/speedtest/templates/speedtest.service.j2 index 9d8c6d9..45a0ea9 100644 --- a/roles/speedtest/templates/speedtest.service.j2 +++ b/roles/speedtest/templates/speedtest.service.j2 @@ -15,8 +15,6 @@ TimeoutStartSec=1200 WorkingDirectory=/opt/speedtest -# 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/tileserver/templates/tileserver.service.j2 b/roles/tileserver/templates/tileserver.service.j2 index ed19f9c..ba295c5 100644 --- a/roles/tileserver/templates/tileserver.service.j2 +++ b/roles/tileserver/templates/tileserver.service.j2 @@ -15,9 +15,6 @@ TimeoutStartSec=1200 WorkingDirectory=/opt/tileserver -# Make sure no old containers are running -ExecStartPre=/usr/bin/docker-compose down -v - # Compose up ExecStart=/usr/bin/docker-compose up