Till Tomczak 273b78f12a Implementiere externes Backend auf 192.168.0.105:5000
- Erstelle API-Proxy-Routen für die Kommunikation mit dem externen Backend
- Füge API-Konfiguration mit 192.168.0.105:5000 als Backend-URL hinzu
- Erstelle Hilfsfunktionen für die externe API-Kommunikation
- Füge Skript zum Konfigurieren der Backend-URL hinzu
- Aktualisiere Docker-Compose mit der Backend-URL-Umgebungsvariable

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-01 13:25:15 +02:00

31 lines
799 B
YAML

services:
caddy:
image: caddy:2.8
container_name: caddy
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- ./caddy/data:/data
- ./caddy/config:/config
- ./caddy/Caddyfile:/etc/caddy/Caddyfile:ro
myp-rp:
image: myp-rp:latest
container_name: myp-rp
environment:
- NEXT_PUBLIC_API_URL=http://192.168.0.105:5000
- OAUTH_CLIENT_ID=client_id
- OAUTH_CLIENT_SECRET=client_secret
env_file: "/srv/myp-env/github.env"
volumes:
- /srv/MYP-DB:/usr/src/app/db
restart: unless-stopped
# Füge Healthcheck hinzu für besseres Monitoring
healthcheck:
test: ["CMD", "wget", "--spider", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s