Add deployment workflow (docker-compose, deploy.sh, webhook receiver)

This commit is contained in:
2026-06-10 11:17:08 +02:00
parent 84c933ea9c
commit b9fc741505
5 changed files with 129 additions and 11 deletions
+34
View File
@@ -0,0 +1,34 @@
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_DB: aufmassweb
POSTGRES_USER: aufmass
POSTGRES_PASSWORD: ${DB_PASSWORD:-aufmass_secret}
healthcheck:
test: ["CMD", "pg_isready", "-U", "aufmass", "-d", "aufmassweb"]
interval: 10s
timeout: 5s
retries: 5
web:
build: ./_aufmass_web
restart: unless-stopped
ports:
- "5000:5000"
volumes:
- ./_aufmass_web/data:/app/data
- ./daten:/app/daten
environment:
DATABASE_URL: postgresql://aufmass:${DB_PASSWORD:-aufmass_secret}@postgres:5432/aufmassweb
SECRET_KEY: ${SECRET_KEY:-change-me-in-production}
REGISTRATION_ENABLED: "false"
depends_on:
postgres:
condition: service_healthy
volumes:
pgdata: