"feat: Integrate Caddy as reverse proxy for frontend"
This commit is contained in:
@ -8,7 +8,7 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
container_name: myp-backend
|
||||
restart: unless-stopped
|
||||
hostname: raaspberry
|
||||
hostname: raspberrypi
|
||||
ports:
|
||||
- "80:80" # HTTP Fallback
|
||||
- "443:443" # HTTPS
|
||||
@ -23,7 +23,7 @@ services:
|
||||
- FLASK_APP=app/app.py
|
||||
- FLASK_ENV=production
|
||||
- SSL_ENABLED=true
|
||||
- SSL_HOSTNAME=raaspberry
|
||||
- SSL_HOSTNAME=raspberrypi
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-k", "https://localhost:443/health"]
|
||||
interval: 30s
|
||||
@ -40,8 +40,8 @@ services:
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- NEXT_PUBLIC_API_URL=https://raaspberry:443
|
||||
- NEXT_PUBLIC_BACKEND_HOST=raaspberry:443
|
||||
- NEXT_PUBLIC_API_URL=https://raspberrypi:443
|
||||
- NEXT_PUBLIC_BACKEND_HOST=raspberrypi:443
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- /app/node_modules
|
||||
@ -74,7 +74,7 @@ services:
|
||||
- myp-network
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
- "raaspberry:backend"
|
||||
- "raspberrypi:backend"
|
||||
- "m040tbaraspi001.de040.corpintra.net:127.0.0.1"
|
||||
environment:
|
||||
- CADDY_HOST=m040tbaraspi001.de040.corpintra.net
|
||||
|
Reference in New Issue
Block a user