The base docker-compose.yml already mounts ./notebooks:/app/notebooks. The named Docker volume was shadowing it in prod, preventing example notebooks from being visible. Bind mount ensures examples ship with the repo and user notebooks persist on the host filesystem.
34 lines
692 B
YAML
34 lines
692 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}}"
|
|
|
|
networks:
|
|
caddy:
|
|
external: true
|