- add script to force class-based dark mode for reliable toggle functionality
🔧 chore(docker): remove version from docker-compose file
- eliminate version declaration for streamlined configuration
19 lines
800 B
YAML
19 lines
800 B
YAML
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
|