Docker: Shorten server-db-setup service name
This commit is contained in:
parent
f694e9b2c4
commit
9c9f268fbf
@ -70,7 +70,7 @@ services:
|
||||
# Uncomment the following line to use daphne instead of gunicorn:
|
||||
# command: "daphne -b 0.0.0.0 -p 8000 openslides.asgi:application"
|
||||
depends_on:
|
||||
- server-db-setup
|
||||
- server-setup
|
||||
environment:
|
||||
<< : *default-osserver-env
|
||||
secrets:
|
||||
@ -78,7 +78,7 @@ services:
|
||||
ifelse(read_env(`OPENSLIDES_BACKEND_SERVICE_REPLICAS'),,,deploy:
|
||||
replicas: ifenvelse(`OPENSLIDES_BACKEND_SERVICE_REPLICAS', 1))
|
||||
|
||||
server-db-setup:
|
||||
server-setup:
|
||||
<< : *default-osserver
|
||||
entrypoint: /usr/local/sbin/entrypoint-db-setup
|
||||
environment:
|
||||
|
@ -79,7 +79,7 @@ services:
|
||||
delay: 5s
|
||||
replicas: ifenvelse(`OPENSLIDES_BACKEND_SERVICE_REPLICAS', 1)
|
||||
|
||||
server-db-setup:
|
||||
server-setup:
|
||||
<< : *default-osserver
|
||||
entrypoint: /usr/local/sbin/entrypoint-db-setup
|
||||
environment:
|
||||
|
@ -12,7 +12,7 @@ source /run/secrets/django
|
||||
export SECRET_KEY="$DJANGO_SECRET_KEY"
|
||||
|
||||
# TODO: env variable for this host
|
||||
wait-for-it -t 0 "server-db-setup:8000"
|
||||
wait-for-it -t 0 "server-setup:8000"
|
||||
|
||||
printf 'Executing server: "%s"\n' "$*"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user