Gateway Configuration
Environment file
Docker Compose loads ./.env from the same directory as the Compose file (for this repo, typically docker/.env).
The package/env_setup.sh script can create or update .env and is intended to run on the host before starting containers. It:
Sets
HOST_IPto the host’s primary IP (used by scripts and Django for gateway proxy binding).Generates
DJANGO_SECRET_KEYand mirrors it toSECRET_KEYif missing (Django readsSECRET_KEYfrom the environment inserver/app/settings.py).Sets default superuser-related keys if absent:
DJANGO_SUPERUSER_USERNAME(defaultadmin),DJANGO_SUPERUSER_EMAIL,DJANGO_SUPERUSER_PASSWORD(random if not set).
Important variables
Variable | Purpose |
|---|---|
| Django secret key; required by the application. |
| Host IP used when starting the main gateway |
| Admin username for the Django superuser (often |
| Password for that superuser (used for web login and API token requests). |
Security: Restrict permissions on .env (for example chmod 600). Do not commit real secrets.
Default credentials
Documentation and legacy behavior often refer to username admin and password admin. Your actual password may be auto-generated by env_setup.sh if DJANGO_SUPERUSER_PASSWORD was not set explicitly — check docker/.env on the deployed host.
Use the auth token endpoint with the configured username and password to obtain an API token.
Django settings (reference)
DEBUG:Falseinserver/app/settings.py.ALLOWED_HOSTS:['*']— tighten for production if you use a known hostname.Database: SQLite at
server/db.sqlite3inside the app container (/code/server/db.sqlite3).Static files:
STATIC_ROOT=/vol/static(shared with nginx).
Nginx
The nginx container uses default.conf.tpl processed with envsubst. Defaults: APP_HOST=app, APP_PORT=8000, LISTEN_PORT=80. Override via container environment if you customize the stack.