35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
services:
|
|
creator2:
|
|
build:
|
|
context: .
|
|
container_name: creator2
|
|
restart: unless-stopped
|
|
# komplette .env durchreichen (Lektion creator: Einzel-Vars ließen
|
|
# ROLE_*/MAX_CONCURRENT_* still weg)
|
|
env_file: .env
|
|
healthcheck:
|
|
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/health', timeout=5)"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
# Traefik routet erst ab "healthy" — ohne dichten Start-Takt prüft Docker
|
|
# erstmals nach `interval` und die Seite ist ~30-60s lang 404
|
|
start_period: 30s
|
|
start_interval: 2s
|
|
networks:
|
|
- web
|
|
volumes:
|
|
- ./storage:/app/storage
|
|
- ./topics:/app/topics
|
|
- ./.claude-data:/home/app/.claude
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.creator2app.rule=Host(`creator2.marha.de`)"
|
|
- "traefik.http.routers.creator2app.entrypoints=websecure"
|
|
- "traefik.http.routers.creator2app.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.creator2app.loadbalancer.server.port=8000"
|
|
|
|
networks:
|
|
web:
|
|
external: true
|