c2f9263f52
SECRET_KEY, APP_URL, and DEBUG were hardcoded/missing in the compose
environment block, so passing SECRET_KEY from the host env had no effect
and the container always raised ImproperlyConfigured in production mode.
All three are now forwarded via ${VAR} substitution, consistent with
the other configurable values.
26 lines
870 B
YAML
26 lines
870 B
YAML
---
|
|
services:
|
|
timetracker:
|
|
image: ${REGISTRY_URL:-registry.kucharczyk.xyz}/timetracker:latest
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: timetracker
|
|
environment:
|
|
- DEBUG=${DEBUG:-false}
|
|
- SECRET_KEY=${SECRET_KEY}
|
|
- TZ=${TZ:-Europe/Prague}
|
|
# APP_URL drives ALLOWED_HOSTS and CSRF_TRUSTED_ORIGINS unless overridden.
|
|
- APP_URL=${APP_URL:-https://tracker.kucharczyk.xyz}
|
|
- PUID=${PUID:-1000}
|
|
- PGID=${PGID:-100}
|
|
- DATA_DIR=${DATA_DIR:-/home/timetracker/app/data}
|
|
- CREATE_DEFAULT_SUPERUSER=${CREATE_DEFAULT_SUPERUSER:-false}
|
|
ports:
|
|
- "${TIMETRACKER_EXTERNAL_PORT:-8000}:8000"
|
|
volumes:
|
|
- "./data:/home/timetracker/app/data"
|
|
- "${DOCKER_STORAGE_PATH:-/tmp}/timetracker/backups:/home/timetracker/app/games/fixtures/backups"
|
|
restart: unless-stopped
|
|
|