Add ENV for server-setup host and port

Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
Adrian Nöthlich 2021-03-12 01:07:39 +01:00
parent 520915c3f5
commit 52108cd0c4
No known key found for this signature in database
GPG Key ID: CBA6B4E35D326EFE
3 changed files with 5 additions and 2 deletions

View File

@ -89,6 +89,8 @@ REDIS_PORT=
REDIS_SLAVE_HOST= REDIS_SLAVE_HOST=
REDIS_SLAVE_PORT= REDIS_SLAVE_PORT=
REDIS_SLAVE_WAIT_TIMEOUT= REDIS_SLAVE_WAIT_TIMEOUT=
SERVER_SETUP_HOST=
SERVER_SETUP_PORT=
# Logging # Logging
DJANGO_LOG_LEVEL= DJANGO_LOG_LEVEL=

View File

@ -82,6 +82,8 @@ x-osserver-env: &default-osserver-env
REDIS_PORT: ifenvelse(`REDIS_PORT', 6379) REDIS_PORT: ifenvelse(`REDIS_PORT', 6379)
REDIS_SLAVE_HOST: "ifenvelse(`REDIS_SLAVE_HOST', redis-slave)" REDIS_SLAVE_HOST: "ifenvelse(`REDIS_SLAVE_HOST', redis-slave)"
REDIS_SLAVE_PORT: ifenvelse(`REDIS_SLAVE_PORT', 6379) REDIS_SLAVE_PORT: ifenvelse(`REDIS_SLAVE_PORT', 6379)
SERVER_SETUP_HOST: "ifenvelse(`SERVER_SETUP_HOST', server-setup)"
SERVER_SETUP_PORT: ifenvelse(`SERVER_SETUP_PORT', 8000)
RESET_PASSWORD_VERBOSE_ERRORS: "ifenvelse(`RESET_PASSWORD_VERBOSE_ERRORS', False)" RESET_PASSWORD_VERBOSE_ERRORS: "ifenvelse(`RESET_PASSWORD_VERBOSE_ERRORS', False)"
x-pgnode: &default-pgnode x-pgnode: &default-pgnode
image: ifenvelse(`DEFAULT_DOCKER_REGISTRY', openslides)/openslides-repmgr:latest image: ifenvelse(`DEFAULT_DOCKER_REGISTRY', openslides)/openslides-repmgr:latest

View File

@ -14,8 +14,7 @@ export SECRET_KEY="$DJANGO_SECRET_KEY"
# SAML setup # SAML setup
. /usr/local/lib/saml-setup.sh . /usr/local/lib/saml-setup.sh
# TODO: env variable for this host wait-for-it -t 0 "${SERVER_SETUP_HOST:-server-setup}:${SERVER_SETUP_PORT:-8000}"
wait-for-it -t 0 "server-setup:8000"
printf 'Executing server: "%s"\n' "$*" printf 'Executing server: "%s"\n' "$*"