Skip to content

Commit b341f6d

Browse files
committed
Document tmpfs requirements
1 parent c61297a commit b341f6d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ This repo is a Next.js app used to generate a static site. The final production
1010
- Runtime is static files only; mount/serve with RO filesystem (e.g., `docker run --read-only --tmpfs /tmp --tmpfs /config --tmpfs /data -p 3000:3000 www-website`).
1111
> ⚠️ The final container maps only the generated `out` directory and static assets; keep it read-only and do not run any Node/npm scripts there.
1212
13+
## Runtime filesystem layout
14+
- The image is read-only, but Caddy still needs tiny writable slots for TLS cache/autosave/lock files.
15+
- Align tmpfs mounts with `docker-compose.yml`: `/tmp:size=32m`, `/config:size=16m`, `/data:size=16m`.
16+
- These small tmpfs allocations keep RAM usage predictable while allowing the static server to update its metadata safely.
17+
1318
## Deployment notes
1419
- Published image: `ghcr.io/devsh-graphics-programming/www-website` (tags: `latest`, `master`, `sha-*`).
1520
- Blog content is proxied separately; the main image does not include Node/npm or blog runtime.

0 commit comments

Comments
 (0)