mirror of
https://github.com/bigbluebutton/docker.git
synced 2024-11-29 11:33:18 +01:00
32 lines
811 B
Bash
Executable File
32 lines
811 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
# load .env
|
|
if [ -f .env ]
|
|
then
|
|
# exclude WELCOME_MESSAGE && WELCOME_FOOTER because it may contain invalid characters
|
|
export $(cat .env | sed 's/#.*//g' | grep -v "WELCOME_FOOTER" | grep -v "WELCOME_MESSAGE" | xargs)
|
|
fi
|
|
|
|
# concatenate docker-compose file
|
|
COMPOSE_FILES="-f docker-compose.yml"
|
|
if [ "$ENABLE_HTTPS_PROXY" == true ]; then
|
|
COMPOSE_FILES="$COMPOSE_FILES -f docker-compose.https.yml"
|
|
fi
|
|
|
|
if [ "$ENABLE_COTURN" == true ]; then
|
|
COMPOSE_FILES="$COMPOSE_FILES -f docker-compose.coturn.yml"
|
|
fi
|
|
|
|
if [ "$ENABLE_GREENLIGHT" == true ]; then
|
|
COMPOSE_FILES="$COMPOSE_FILES -f docker-compose.greenlight.yml"
|
|
fi
|
|
|
|
if [ "$ENABLE_WEBHOOKS" == true ]; then
|
|
COMPOSE_FILES="$COMPOSE_FILES -f docker-compose.webhooks.yml"
|
|
fi
|
|
|
|
docker-compose $COMPOSE_FILES $@
|