# CryptPad — Notes ## Config directory requires emptyDir + initContainer CryptPad's `/cryptpad/config/` directory is in the image overlay filesystem and is not writable by the container process even when running as root. **Fix**: mount an `emptyDir` at `/cryptpad/config` and use an initContainer to pre-seed `config.example.js` from the image into the emptyDir: ```yaml initContainers: - name: seed-config image: cryptpad/cryptpad:version-X.Y.Z command: [sh, -c, "cp /cryptpad/config/config.example.js /config-dest/config.example.js"] volumeMounts: - name: cryptpad-config mountPath: /config-dest volumes: - name: cryptpad-config emptyDir: {} ``` Set `CPAD_CONF=/cryptpad/config/config.js` — the startup script copies `config.example.js` to `config.js` on first run if `config.js` doesn't exist.