Skip to content

fix(docker): single /tmp tmpfs read-only runtime - #22

Merged
casperbiering merged 1 commit into
mainfrom
fix/caddy-dockerfile-chown
Aug 26, 2026
Merged

fix(docker): single /tmp tmpfs read-only runtime#22
casperbiering merged 1 commit into
mainfrom
fix/caddy-dockerfile-chown

Conversation

@casperbiering

@casperbiering casperbiering commented Aug 25, 2026

Copy link
Copy Markdown
Member

Summary

  • One writable mount: /tmp tmpfs (mode=0770,uid=10001,gid=10001)
  • Caddy: auto_https off, persist_config off, storage_clean_interval off, storage_check off; XDG/HOME → /tmp
  • Bake route:cache + view:cache only (no config:cache — runtime APP_KEY/APP_URL stay live)
  • Image stays root-owned; compose runs as 10001:10001 with NET_BIND_SERVICE only
  • Drop /data//config volumes and storage/bootstrap tmpfs

Test plan

  • docker build -t test .
  • Run read-only as 10001 with only /tmp tmpfs — Server running, no storage-clean / instance-ID errors
  • Confirm changing compose APP_KEY still applies (config not baked)

Disable Caddy disk housekeeping; bake route+view cache only.
Keep image root-owned; compose runs as 10001 with /tmp writable.
@casperbiering
casperbiering force-pushed the fix/caddy-dockerfile-chown branch from ab87a27 to 84ee809 Compare August 26, 2026 19:29
@casperbiering casperbiering changed the title fix(docker): chown caddy paths for uid 10001 fix(docker): single /tmp tmpfs read-only runtime Aug 26, 2026
@casperbiering
casperbiering marked this pull request as ready for review August 26, 2026 19:50
@casperbiering
casperbiering merged commit b876436 into main Aug 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant