Serve the built PWA behind your own domain: multi-stage Dockerfile builds dist/ and serves it with Caddy on :80 (TLS terminated at your Cloudflare edge). Caddyfile sets no-cache on sw.js/index/manifest and immutable on hashed assets; SPA fallback to index.html. docker-compose maps :8087. Verified locally: image builds, container serves 200s with correct cache headers and SPA fallback. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
10 lines
239 B
YAML
10 lines
239 B
YAML
services:
|
|
director:
|
|
build: .
|
|
image: the-director:latest
|
|
container_name: the-director
|
|
restart: unless-stopped
|
|
ports:
|
|
# host:container — point your director.timevans.uk route at host port 8087
|
|
- "8087:80"
|