Features: - Manager-centric parking spot management - Fair assignment algorithm (parking/presence ratio) - Presence tracking calendar - Closing days (specific & weekly recurring) - Guarantees and exclusions - Authelia/LLDAP integration for SSO Stack: - FastAPI backend - SQLite database - Vanilla JS frontend - Docker deployment
35 lines
958 B
YAML
35 lines
958 B
YAML
services:
|
|
parking:
|
|
build: .
|
|
container_name: parking-manager
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./data:/app/data
|
|
environment:
|
|
- SECRET_KEY=${SECRET_KEY:-change-me-in-production}
|
|
- HOST=0.0.0.0
|
|
- PORT=8000
|
|
- DATABASE_PATH=/app/data/parking.db
|
|
- AUTHELIA_ENABLED=${AUTHELIA_ENABLED:-false}
|
|
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS:-*}
|
|
# SMTP (optional)
|
|
- SMTP_HOST=${SMTP_HOST:-}
|
|
- SMTP_PORT=${SMTP_PORT:-587}
|
|
- SMTP_USER=${SMTP_USER:-}
|
|
- SMTP_PASSWORD=${SMTP_PASSWORD:-}
|
|
- SMTP_FROM=${SMTP_FROM:-}
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
# For production with external network (Caddy/Authelia):
|
|
# networks:
|
|
# default:
|
|
# external: true
|
|
# name: proxy
|