feat: Update frontend and backend configurations for development environment - Downgrade PyP100 version in requirements.txt for compatibility. - Add new frontend routes for index, login, dashboard, printers, jobs, and profile pages. - Modify docker-compose files for development setup, including environment variables and service names. - Update Caddyfile for local development with Raspberry Pi backend. - Adjust health check route to use updated backend URL. - Enhance setup-backend-url.sh for development environment configuration. """
61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
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"
|
|
- "raspberrypi:192.168.0.105"
|
|
environment:
|
|
- CADDY_HOST=localhost
|
|
- CADDY_DOMAIN=localhost
|
|
cap_add:
|
|
- NET_ADMIN
|
|
|
|
networks:
|
|
myp-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
caddy_data:
|
|
caddy_config: |