infra: add persistent uploads volume and configure Caddy to serve static images

- Add named Docker volume `uploads` mounted at /app/public/uploads in app container
- Share same volume with Caddy at /srv/uploads for direct static file serving
- Add Caddy `handle /uploads/*` block so images bypass Next.js (standalone mode does not serve runtime public files)
- Create uploads directory with correct nextjs:nodejs ownership in Dockerfile
- Add mkdir safeguard in entrypoint.sh
This commit is contained in:
2026-05-18 17:53:30 +02:00
parent a8d4c158b8
commit b3097670c0
4 changed files with 11 additions and 0 deletions
+4
View File
@@ -1,3 +1,7 @@
localhost {
handle /uploads/* {
root * /srv
file_server
}
reverse_proxy app:3000
}