25 lines
532 B
YAML
25 lines
532 B
YAML
|
|
services:
|
||
|
|
backend:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
dockerfile: Dockerfile
|
||
|
|
image: wochenplaner-backend:latest
|
||
|
|
container_name: wochenplaner
|
||
|
|
restart: unless-stopped
|
||
|
|
|
||
|
|
# Kein ports: 80/443 - Traefik belegt diese
|
||
|
|
# Port 8000 für API - identischer Host/Container-Port
|
||
|
|
ports:
|
||
|
|
- "8000:8000"
|
||
|
|
|
||
|
|
environment:
|
||
|
|
- PORT=8000
|
||
|
|
- JWT_SECRET=${JWT_SECRET:-wochenplaner-jwt-secret-change-me}
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
- wochenplaner_data:/app/data
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
wochenplaner_data:
|
||
|
|
driver: local
|