Skip to content

fix: grant Redis the same volume caps as Postgres - #202

Merged
0xafrogeek merged 1 commit into
mainfrom
fix/redis-volume-caps
Sep 3, 2026
Merged

0xafrogeek merged 1 commit into
mainfrom
fix/redis-volume-caps

Conversation

@0xafrogeek

@0xafrogeek 0xafrogeek commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Grant Redis the same caps Postgres already has: CHOWN, DAC_OVERRIDE, FOWNER (plus existing SETGID/SETUID).

Test plan

  • Smoke via Traefik loopback: https://certification.dhis2.org/health/live (and ready/health/SPA) → 200. Staging still 200.

Official redis:7-alpine entrypoint runs find/chown as root, then
setpriv to uid 999. After the first boot, appendonlydir is 0700.
With only SETGID/SETUID, root cannot traverse that directory
(DAC_OVERRIDE is dropped), so recreate exits 1 and compose --wait
marks Redis unhealthy.

Add CHOWN, DAC_OVERRIDE, and FOWNER to match the Postgres service.
@0xafrogeek
0xafrogeek merged commit 2208a8d into main Sep 3, 2026
9 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