- Add multi-stage Dockerfile with dependency caching for both frontend and backend - Implement Docker Compose configuration with separate frontend/backend services - Configure Caddy as reverse proxy with proper WASM and static file serving - Add volume mounting for frontend assets shared between containers - Optimize build process with staged compilation and workspace handling - Add debug logging and WASM initialization tracking for production deployment - Update README with project motivation and "vibe coded" disclaimer 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
421 B
YAML
23 lines
421 B
YAML
services:
|
|
calendar-backend:
|
|
build: .
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ./data/site_dist:/srv/www
|
|
|
|
calendar-frontend:
|
|
image: caddy
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./data/site_dist:/srv/www:ro
|
|
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
|
- ./data/caddy/data:/data
|
|
- ./data/caddy/config:/config
|