version: '3' services: # Next.js Frontend frontend: build: context: . dockerfile: Dockerfile.dev container_name: myp-rp-dev restart: unless-stopped environment: - NODE_ENV=development - NEXT_PUBLIC_API_URL=http://192.168.0.105:5000 - NEXT_PUBLIC_BACKEND_HOST=192.168.0.105:5000 - DEBUG=true - NEXT_DEBUG=true volumes: - .:/app - /app/node_modules - /app/.next ports: - "3000:3000" networks: - myp-network healthcheck: test: ["CMD", "wget", "--spider", "http://localhost:3000/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s # Caddy Proxy (Entwicklung) caddy: image: caddy:2.7-alpine container_name: myp-caddy-dev restart: unless-stopped ports: - "80:80" - "443:443" volumes: - ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile - caddy_data:/data - caddy_config:/config networks: - myp-network extra_hosts: - "host.docker.internal:host-gateway" - "raaspberry:192.168.0.105" - "m040tbaraspi001.de040.corpintra.net:127.0.0.1" environment: - CADDY_HOST=m040tbaraspi001.de040.corpintra.net - CADDY_DOMAIN=m040tbaraspi001.de040.corpintra.net cap_add: - NET_ADMIN networks: myp-network: driver: bridge volumes: caddy_data: caddy_config: