This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
skynet-webportal/dc

28 lines
632 B
Plaintext
Raw Normal View History

#!/bin/bash
if [ -f .env ]; then
export $(cat .env | sed 's/#.*//g' | xargs)
fi
2021-05-28 15:55:15 +00:00
# include base docker compose file
COMPOSE_FILES="-f docker-compose.yml"
for i in $(seq 1 ${#PORTAL_MODULES}); do
# accounts module - alias "a"
if [ ${PORTAL_MODULES:i-1:1} == "a" ]; then
COMPOSE_FILES+=" -f docker-compose.accounts.yml"
fi
# jaeger module - alias "j"
if [ ${PORTAL_MODULES:i-1:1} == "j" ]; then
COMPOSE_FILES+=" -f docker-compose.jaeger.yml"
fi
done
# override file if exists
if [ -f docker-compose.override.yml ]; then
COMPOSE_FILES+=" -f docker-compose.override.yml"
fi
docker-compose $COMPOSE_FILES $@