DasUnternehmen/docker-compose.example.yaml
2026-04-08 21:23:55 +02:00

40 lines
950 B
YAML

services:
web:
build: .
container_name: dasunternehmen_web
restart: unless-stopped
ports:
- "5050:5000"
environment:
SECRET_KEY: change-me
APP_BASE_URL: http://localhost:5050
DB_HOST: db
DB_NAME: UnternehmenDB
DB_USER: UnternehmenUser
DB_PASSWORD: UnternehmenPWD
DB_PORT: 5432
SMTP_SERVER: smtp.example.com
SMTP_PORT: 587
SMTP_USERNAME: smtp-user
SMTP_PASSWORD: smtp-password
MAIL_SENDER: noreply@dasunternehmen.com
depends_on:
- db
db:
image: postgres:16
container_name: dasunternehmen_db
restart: unless-stopped
environment:
POSTGRES_DB: UnternehmenDB
POSTGRES_USER: UnternehmenUser
POSTGRES_PASSWORD: UnternehmenPWD
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./schema.sql:/docker-entrypoint-initdb.d/01-schema.sql:ro
volumes:
postgres_data: