server-verwaltung/docker-compose.yml
nocci 3c2c853fc7 feat(registration): add self-registration configuration option
- introduce ALLOW_SELF_REGISTRATION environment variable
- update .env-example and docker-compose.yml to include new setting
- modify registration logic to respect self-registration configuration

📝 docs(README): document self-registration configuration

- add description of ALLOW_SELF_REGISTRATION setting in README
- explain default value and its impact on user registration process
2025-12-06 14:07:21 +00:00

20 lines
815 B
YAML

version: "3.9"
services:
fleetledger:
build: .
container_name: fleetledger
ports:
- "8000:8000"
environment:
- DATABASE_PATH=/app/data/fleetledger.db
# SESSION_SECRET must be provided (e.g. via .env) and should be long and random
- SESSION_SECRET=${SESSION_SECRET:?Set SESSION_SECRET in your environment}
# Set to 0 only for local HTTP testing; keep secure (default) in production
- SESSION_COOKIE_SECURE=${SESSION_COOKIE_SECURE:-1}
# Optional: encryption key for management passwords (Fernet key)
- ENCRYPTION_KEY=${ENCRYPTION_KEY:-}
# Allow self-registration after first admin (1 = allow, 0 = only admin-created)
- ALLOW_SELF_REGISTRATION=${ALLOW_SELF_REGISTRATION:-0}
volumes:
- ./data:/app/data
restart: unless-stopped