Add SELinux override file and Podman/SELinux instructions#123
Merged
Conversation
Mark90
reviewed
Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a selinux-override.yml compose override and a "Podman / SELinux notes" section to the README so Fedora/SELinux users can run the stack with podman-compose without editing the base docker-compose.yml.
Background
The base docker-compose.yml targets Docker, where bind mounts work without SELinux relabel flags. On SELinux-enforcing systems (Fedora, RHEL), bind-mounted host directories keep the user_home_t label, which container processes (container_t) cannot read — the mounts fail silently or with permission errors. Podman's :z flag relabels the source to container_file_t to fix this.
Changes
• selinux-override.yml (new) — adds the :z flag to all 28 bind mounts across postgres, netbox, netbox-worker, and orchestrator. Named volumes (db-data, netbox-media-files, netbox-redis-cache-data) are deliberately excluded: Podman creates them already labeled container_file_t, so :z is unnecessary there. Applied with:
podman-compose -f docker-compose.yml -f selinux-override.yml up
• README.md — new "Podman / SELinux notes" subsection under "Start application" covering three issues Podman users hit:
What this does not change
docker-compose.yml is untouched. Docker users see no behavior change; the override is opt-in for Podman/SELinux environments