move envs from Dockerfile to docker-compose files (#264)

This commit is contained in:
Markos Gogoulos
2021-08-02 22:03:32 +03:00
committed by GitHub
parent 2dde4257f7
commit 86cc0442d8
8 changed files with 17 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ if [ X"$ENABLE_MIGRATIONS" = X"yes" ]; then
# post_save, needs redis to succeed (ie. migrate depends on redis)
DJANGO_SUPERUSER_PASSWORD=$ADMIN_PASSWORD python manage.py createsuperuser \
--no-input \
--username=admin \
--username=$ADMIN_USER \
--email=$ADMIN_EMAIL \
--database=default || true
echo "Created admin user with password: $ADMIN_PASSWORD"