mirror of
https://github.com/bigbluebutton/docker.git
synced 2024-11-22 08:03:19 +01:00
35 lines
1.2 KiB
Bash
Executable File
35 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
# load .env
|
|
if [ -f .env ]
|
|
then
|
|
# exclude WELCOME_MESSAGE && WELCOME_FOOTER && CLIENT_TITLE because it may contain invalid characters
|
|
export $(cat .env | sed 's/#.*//g' | grep -v "WELCOME_FOOTER" | grep -v "WELCOME_MESSAGE" | grep -v "CLIENT_TITLE" | xargs)
|
|
fi
|
|
|
|
# check for non-optional environment variables,
|
|
# which got introduced later and may miss in existing
|
|
# .env files during upgrades
|
|
if [ -z "$EXTERNAL_IPv4" ]; then
|
|
echo "ERROR: EXTERNAL_IPv4 is not set in .env"
|
|
echo "BBB won't work without it."
|
|
exit 1
|
|
fi
|
|
|
|
docker run \
|
|
--rm \
|
|
-v $(pwd)/docker-compose.tmpl.yml:/docker-compose.tmpl.yml \
|
|
-e DEV_MODE=${DEV_MODE:-false} \
|
|
-e ENABLE_RECORDING=${ENABLE_RECORDING:-false} \
|
|
-e ENABLE_HTTPS_PROXY=${ENABLE_HTTPS_PROXY:-false} \
|
|
-e ENABLE_WEBHOOKS=${ENABLE_WEBHOOKS:-false} \
|
|
-e ENABLE_GREENLIGHT=${ENABLE_GREENLIGHT:-false} \
|
|
-e ENABLE_PROMETHEUS_EXPORTER=${ENABLE_PROMETHEUS_EXPORTER:-false} \
|
|
-e NUMBER_OF_BACKEND_NODEJS_PROCESSES=${NUMBER_OF_BACKEND_NODEJS_PROCESSES:-1} \
|
|
-e NUMBER_OF_FRONTEND_NODEJS_PROCESSES=${NUMBER_OF_FRONTEND_NODEJS_PROCESSES:-1} \
|
|
jwilder/dockerize -template /docker-compose.tmpl.yml \
|
|
> docker-compose.yml
|