From fc3cc78248913edbc2862edb793bdb8293f5c7fd Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Fri, 19 Mar 2021 13:53:11 +0200 Subject: [PATCH] Move composer to its own docker-compose file Composer only needs to run once before everything else is up. --- deploy.sh | 5 ++++- docker-compose-jfrog-composer.yml | 11 +++++++++++ docker-compose-jfrog.yml | 8 -------- 3 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 docker-compose-jfrog-composer.yml diff --git a/deploy.sh b/deploy.sh index 12cc3e8..11e0e65 100755 --- a/deploy.sh +++ b/deploy.sh @@ -16,7 +16,10 @@ dump_logs() { docker login https://registry.curex-project.eu:443/artifactory/curex-local/ # pull all containers -docker-compose -f docker-compose-jfrog.yml pull +docker-compose \ + -f docker-compose-jfrog.yml \ + -f docker-compose-jfrog-composer.yml \ + pull sleep 1 diff --git a/docker-compose-jfrog-composer.yml b/docker-compose-jfrog-composer.yml new file mode 100644 index 0000000..3fb110e --- /dev/null +++ b/docker-compose-jfrog-composer.yml @@ -0,0 +1,11 @@ +version: '3' + +services: + composer: + restart: 'no' + image: registry.curex-project.eu:443/curex-local/kea_composer:2.0.7 + container_name: kea_composer + command: install + volumes: + - ./api:/app + diff --git a/docker-compose-jfrog.yml b/docker-compose-jfrog.yml index 3cfb972..4e96b38 100644 --- a/docker-compose-jfrog.yml +++ b/docker-compose-jfrog.yml @@ -70,14 +70,6 @@ services: - ./api:/var/www - ./api/nginx/conf.d/:/etc/nginx/conf.d/ - composer: - restart: 'no' - image: registry.curex-project.eu:443/curex-local/kea_composer:2.0.7 - container_name: kea_composer - command: install - volumes: - - ./api:/app - api: image: registry.curex-project.eu:443/curex-local/kea_api:1.0.1 container_name: kea_api -- 2.2.2