- Verbessere Docker Compose Versionsprüfung und -installation - Aktualisiere docker-compose.yml zu Version 3 Format - Behebe YAML-Syntax-Fehler in Environment-Variablen - Füge Unterstützung für beide Befehlsvarianten hinzu (docker-compose/docker compose) - Verwende Docker Compose v2.6.1 für ARM-Architekturen (Raspberry Pi) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
640 B
YAML
23 lines
640 B
YAML
version: '3'
|
|
|
|
services:
|
|
frontend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: myp-frontend
|
|
network_mode: host
|
|
environment:
|
|
- RUNTIME_ENVIRONMENT=${RUNTIME_ENVIRONMENT:-prod}
|
|
- OAUTH_CLIENT_ID=${OAUTH_CLIENT_ID:-client_id}
|
|
- OAUTH_CLIENT_SECRET=${OAUTH_CLIENT_SECRET:-client_secret}
|
|
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-http://localhost:5000}
|
|
volumes:
|
|
- ./db:/app/db
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--spider", "http://localhost:3000"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s |