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>
This commit is contained in:
@ -13,7 +13,18 @@ services:
|
||||
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
|
||||
|
Reference in New Issue
Block a user