DasUnternehmen/docker-compose.example.yaml

40 lines
932 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: mail.kolb.cc
SMTP_PORT: 25
SMTP_USERNAME: smtp-user
SMTP_PASSWORD: smtp-password
MAIL_SENDER: admin@kolb.cc
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: