Add ENV for server-setup host and port
Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
parent
520915c3f5
commit
52108cd0c4
@ -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=
|
||||||
|
@ -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
|
||||||
|
@ -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' "$*"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user