--remove-orphans cleans up containers from services that no longer
exist in docker-compose.yml — handy if you’re upgrading from an older
version of this repo.What happens on first startup
Compose brings services up in this order, waiting on each dependency:1
db and redis start
MySQL and Redis start first.
2
app-migrations runs
Runs Django migrations against the database, then exits.
3
init-commands runs
Bootstraps your organization and admin user, then exits. This is what
creates the organization from
ON_PREM_ORGANIZATION_NAME and assigns
your superuser the owner role — no manual Django Admin steps needed.4
app, celery-worker, and dashboard start
The backend, background worker, and dashboard come up once the steps
above complete successfully.