Add deployment workflow (docker-compose, deploy.sh, webhook receiver)
This commit is contained in:
@@ -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:
|
||||
Reference in New Issue
Block a user