diff --git a/Dockerfile b/Dockerfile index 1600354..1901d6a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,4 +24,4 @@ ADD --chown=portier:portier . /app RUN ./manage.py collectstatic --noinput --link RUN ./manage.py compilemessages -CMD ["/app/start.sh", "migrate_start"] +CMD ["/app/start.sh"] diff --git a/start.sh b/start.sh index f591351..17c3b04 100755 --- a/start.sh +++ b/start.sh @@ -23,7 +23,13 @@ migrate() { python manage.py migrate } +initialize() { + python manage.py createdefaultgroup + python manage.py createdefaultapplication +} + wait_for_redis wait_for_database migrate +initialize supervisord -n -c /etc/supervisord.conf