Skip to content

Django manage steps in compose startup sequence#26

Merged
ddunc23 merged 1 commit into
memorymapper:masterfrom
mapto:feature/django_manage_in_compose
May 12, 2026
Merged

Django manage steps in compose startup sequence#26
ddunc23 merged 1 commit into
memorymapper:masterfrom
mapto:feature/django_manage_in_compose

Conversation

@mapto
Copy link
Copy Markdown

@mapto mapto commented May 4, 2026

  • Renamed environmental variable DJANGO_SUPERUSER to DJANGO_SUPERUSER_USERNAME and added DJANGO_SUPERUSER_EMAIL. This allows us to directly call python manage.py createsuperuser --noinput.
  • Updated docker-compose.yml:
    • added healthchecks, depends_on condition and restart.
    • expanded compose command to run django management steps on startup
  • DJANGO_ALLOWED_HOSTS now actually works with more than one host (space separated)

Copy link
Copy Markdown

@stefanwayon stefanwayon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH I don't remember the details of this, but your changes definitely include the ones in the other PR so happy to close that one. :-)

@ddunc23 ddunc23 merged commit a579b2c into memorymapper:master May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants