Key changes: - Removed office-centric model (deleted offices.py, office-rules) - Renamed to team-rules, managers are part of their own team - Team calendar visible to all (read-only for employees) - Admins can have a manager assigned
36 lines
939 B
YAML
36 lines
939 B
YAML
services:
|
|
parking:
|
|
build: .
|
|
container_name: parking
|
|
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
|
|
networks:
|
|
- org-network
|
|
|
|
networks:
|
|
org-network:
|
|
external: true
|
|
name: org-stack_org-network
|