From 03371be81d783555373dc2245be58d17ba850b11 Mon Sep 17 00:00:00 2001 From: kikootwo Date: Fri, 6 Feb 2026 16:09:00 -0500 Subject: [PATCH] Add optional rootless Podman support Add documentation and example env var to docker-compose.yml for running with rootless Podman. Introduces a commented ROOTLESS_CONTAINER option that, when set to "true", skips gosu UID/GID switching since user namespaces handle mapping; includes a warning not to enable this for Docker or LXC to avoid creating files as root. --- docker-compose.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 8399e07..9cd7eaf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -53,6 +53,15 @@ services: # CONFIG_ENCRYPTION_KEY: "your-custom-encryption-key-here" # POSTGRES_PASSWORD: "your-custom-postgres-password-here" + # ======================================================================== + # OPTIONAL: Rootless Podman Support + # ======================================================================== + # Set to "true" ONLY if running with rootless Podman. + # This skips gosu UID/GID switching since the user namespace already + # handles mapping. Do NOT enable for Docker or LXC - it will cause + # files to be created as root. + # ROOTLESS_CONTAINER: "true" + # ======================================================================== # OPTIONAL: Application Configuration # ========================================================================