Use named volume for notebooks in production
Bind mounts inherit host UID which conflicts with the container's non-root user. Named volumes are initialized from the image layer, preserving the chown from the Dockerfile.
This commit is contained in:
parent
7ffd3f1bd3
commit
fb5b911ea1
@ -4,6 +4,8 @@ services:
|
|||||||
context: ./backend
|
context: ./backend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
target: prod
|
target: prod
|
||||||
|
volumes:
|
||||||
|
- notebooks:/app/notebooks
|
||||||
expose:
|
expose:
|
||||||
- "8000"
|
- "8000"
|
||||||
networks:
|
networks:
|
||||||
@ -28,6 +30,9 @@ services:
|
|||||||
caddy: "${SPICEBOOK_DOMAIN:-spicebook.localhost}"
|
caddy: "${SPICEBOOK_DOMAIN:-spicebook.localhost}"
|
||||||
caddy.reverse_proxy_1: "{{upstreams 4321}}"
|
caddy.reverse_proxy_1: "{{upstreams 4321}}"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
notebooks:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
caddy:
|
caddy:
|
||||||
external: true
|
external: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user