Fix docker-compose config enviroment

Simó Albert i Beltran 2021-05-19 18:14:02 +02:00
parent 9f3952dc86
commit 8699d16592
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ digitaldemocratic.conf
docker-compose.yml docker-compose.yml
**/*.yaml **/*.yaml
custom/ custom/
.env

View File

@ -37,9 +37,12 @@ environment:
echo "BUILD_ROOT_PATH=$(CUSTOM_PATH)" >> docker-compose-parts/.env echo "BUILD_ROOT_PATH=$(CUSTOM_PATH)" >> docker-compose-parts/.env
build: environment build: environment
echo BUILD_ROOT_PATH=$(CUSTOM_PATH)/isard-sso > .env
docker-compose -f docker-compose-parts/backup.yml \ docker-compose -f docker-compose-parts/backup.yml \
-f docker-compose-parts/admin.yml \ -f docker-compose-parts/admin.yml \
config > dd.yml config > dd.yml
echo CUSTOM_PATH=$(CUSTOM_PATH) > .env
echo BUILD_ROOT_PATH=$(CUSTOM_PATH)/isard-sso >> .env
docker-compose -f isard-sso/docker-compose-parts/haproxy.yml \ docker-compose -f isard-sso/docker-compose-parts/haproxy.yml \
-f isard-sso/docker-compose-parts/api.yml \ -f isard-sso/docker-compose-parts/api.yml \
-f isard-sso/docker-compose-parts/keycloak.yml \ -f isard-sso/docker-compose-parts/keycloak.yml \
@ -47,6 +50,7 @@ build: environment
-f isard-apps/docker/postgresql/postgresql.yml \ -f isard-apps/docker/postgresql/postgresql.yml \
config > sso.yml config > sso.yml
#-f isard-sso/docker-compose-parts/freeipa.yml #-f isard-sso/docker-compose-parts/freeipa.yml
echo BUILD_ROOT_PATH=$(CUSTOM_PATH)/isard-apps > .env
docker-compose -f isard-apps/docker/moodle/moodle.yml \ docker-compose -f isard-apps/docker/moodle/moodle.yml \
-f isard-apps/docker/nextcloud/nextcloud.yml \ -f isard-apps/docker/nextcloud/nextcloud.yml \
-f isard-apps/docker/wordpress/wordpress.yml \ -f isard-apps/docker/wordpress/wordpress.yml \