feat: Add email verification, owner shift deletion, Coolify Docker compose setup, and fixes

This commit is contained in:
Richard
2026-07-31 10:16:22 +02:00
parent a69f31649c
commit 6ffcc58a4c
13 changed files with 458 additions and 334 deletions
+21 -18
View File
@@ -1,20 +1,23 @@
version: '3.8'
# Coolify & Production Ready Docker Compose Configuration
# Traefik in Coolify automatically routes traffic to the 'frontend' service on port 80.
# Container names and port bindings are intentionally managed by Coolify to avoid collisions.
services:
db:
image: postgres:16-alpine
container_name: shiftplan_db
environment:
POSTGRES_DB: shiftplan_db
POSTGRES_USER: shiftplan_user
POSTGRES_PASSWORD: shiftplan_secure_password_123
POSTGRES_DB: ${POSTGRES_DB:-shiftplan_db}
POSTGRES_USER: ${POSTGRES_USER:-shiftplan_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-shiftplan_secure_password_123}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
expose:
- "5432"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U shiftplan_user -d shiftplan_db"]
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-shiftplan_user} -d ${POSTGRES_DB:-shiftplan_db}"]
interval: 5s
timeout: 5s
retries: 5
@@ -23,35 +26,35 @@ services:
build:
context: ./backend
dockerfile: Dockerfile
container_name: shiftplan_backend
command: >
sh -c "python manage.py makemigrations --noinput &&
python manage.py migrate --noinput &&
python manage.py seed_data &&
gunicorn --bind 0.0.0.0:8000 --workers 3 shiftplan_backend.wsgi:application"
environment:
SECRET_KEY: "prod-secret-key-change-in-env"
DEBUG: "False"
ALLOWED_HOSTS: "*"
POSTGRES_DB: shiftplan_db
POSTGRES_USER: shiftplan_user
POSTGRES_PASSWORD: shiftplan_secure_password_123
SECRET_KEY: ${SECRET_KEY:-prod-secret-key-change-in-coolify}
DEBUG: ${DEBUG:-False}
ALLOWED_HOSTS: ${ALLOWED_HOSTS:-*}
POSTGRES_DB: ${POSTGRES_DB:-shiftplan_db}
POSTGRES_USER: ${POSTGRES_USER:-shiftplan_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-shiftplan_secure_password_123}
POSTGRES_HOST: db
POSTGRES_PORT: "5432"
depends_on:
db:
condition: service_healthy
ports:
- "8000:8000"
expose:
- "8000"
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: shiftplan_frontend
expose:
- "80"
ports:
- "80:80"
- "${PORT:-80}:80"
depends_on:
- backend
restart: unless-stopped