# ---------------------------------------------------------------------------- # jb-website — LOCAL preview of the built container. # # The production compose.yml pulls a registry image, joins the external `edge` # network, and publishes no ports — none of which works on a laptop. This file # builds the image locally and maps a host port straight to the internal :80 so # you can eyeball the real Caddy/static output without the edge proxy. # # docker compose -f compose.dev.yml up --build # -> http://localhost:8080 # # Subdomain Host-matching only fires for the real hostnames, so localhost:8080 # falls through to the apex build (see the fallback handler in Caddyfile). To # exercise subdomain routing locally, add hosts-file entries pointing the real # names at 127.0.0.1, or just use `npm run dev` (the urls.ts helpers collapse # cross-subdomain links to relative paths in dev). # ---------------------------------------------------------------------------- services: web: build: . image: jb-website:dev container_name: jb-website-dev ports: - "8080:80"