From b9e35c66a38e8103cf412fee1e163fdd7ce417c0 Mon Sep 17 00:00:00 2001 From: swiftugandan Date: Sun, 1 Aug 2021 16:54:13 +0100 Subject: [PATCH] shutdown migrations container when migrations have completed (#228) --- docker-compose-http-proxy.yaml | 2 ++ docker-compose-https-proxy.yaml | 2 ++ docker-compose-letsencrypt.yaml | 2 ++ docker-compose-named-volumes.yaml | 2 ++ docker-compose.yaml | 2 ++ 5 files changed, 10 insertions(+) diff --git a/docker-compose-http-proxy.yaml b/docker-compose-http-proxy.yaml index 11df078..8ae41b0 100644 --- a/docker-compose-http-proxy.yaml +++ b/docker-compose-http-proxy.yaml @@ -18,6 +18,8 @@ services: ENABLE_CELERY_SHORT: 'no' ENABLE_CELERY_LONG: 'no' ENABLE_CELERY_BEAT: 'no' + command: "./deploy/docker/prestart.sh" + restart: on-failure depends_on: redis: condition: service_healthy diff --git a/docker-compose-https-proxy.yaml b/docker-compose-https-proxy.yaml index b0e8793..59475e2 100644 --- a/docker-compose-https-proxy.yaml +++ b/docker-compose-https-proxy.yaml @@ -20,6 +20,8 @@ services: ENABLE_CELERY_SHORT: 'no' ENABLE_CELERY_LONG: 'no' ENABLE_CELERY_BEAT: 'no' + command: "./deploy/docker/prestart.sh" + restart: on-failure depends_on: redis: condition: service_healthy diff --git a/docker-compose-letsencrypt.yaml b/docker-compose-letsencrypt.yaml index cd03b97..3ddde6c 100644 --- a/docker-compose-letsencrypt.yaml +++ b/docker-compose-letsencrypt.yaml @@ -38,6 +38,8 @@ services: ENABLE_CELERY_SHORT: 'no' ENABLE_CELERY_LONG: 'no' ENABLE_CELERY_BEAT: 'no' + command: "./deploy/docker/prestart.sh" + restart: on-failure depends_on: redis: condition: service_healthy diff --git a/docker-compose-named-volumes.yaml b/docker-compose-named-volumes.yaml index 52f8229..63273d4 100644 --- a/docker-compose-named-volumes.yaml +++ b/docker-compose-named-volumes.yaml @@ -11,6 +11,8 @@ services: ENABLE_CELERY_SHORT: 'no' ENABLE_CELERY_LONG: 'no' ENABLE_CELERY_BEAT: 'no' + command: "./deploy/docker/prestart.sh" + restart: on-failure depends_on: redis: condition: service_healthy diff --git a/docker-compose.yaml b/docker-compose.yaml index da35826..a8c3d55 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -11,6 +11,8 @@ services: ENABLE_CELERY_SHORT: 'no' ENABLE_CELERY_LONG: 'no' ENABLE_CELERY_BEAT: 'no' + command: "./deploy/docker/prestart.sh" + restart: on-failure depends_on: redis: condition: service_healthy