Without flush_interval: -1, Caddy buffers SSR responses and can truncate large pages (380KB homepage was cut to 70KB, dropping the ResistorColorGuide section entirely).
35 lines
741 B
YAML
35 lines
741 B
YAML
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
target: prod
|
|
expose:
|
|
- "8000"
|
|
networks:
|
|
- default
|
|
- caddy
|
|
labels:
|
|
caddy: "${SPICEBOOK_DOMAIN:-spicebook.localhost}"
|
|
caddy.@api.path: "/api/* /health /docs /openapi.json /redoc"
|
|
caddy.reverse_proxy_0: "@api {{upstreams 8000}}"
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
target: prod
|
|
expose:
|
|
- "4321"
|
|
networks:
|
|
- default
|
|
- caddy
|
|
labels:
|
|
caddy: "${SPICEBOOK_DOMAIN:-spicebook.localhost}"
|
|
caddy.reverse_proxy_1: "{{upstreams 4321}}"
|
|
caddy.reverse_proxy_1.flush_interval: "-1"
|
|
|
|
networks:
|
|
caddy:
|
|
external: true
|