ARTEX/docker-compose.selinux.yml
BaaRai b2241711f1 chore(docker): add opt-in SELinux overlay with private :Z volume labels (#632)
Replaces #632's unconditional shared :z relabelling on the base compose file
with an opt-in docker-compose.selinux.yml overlay using private :Z labels on
./data, ./keys (jwt.key/secret.key), and ./skills via Compose !override.

Co-authored-by: bigwalkdoe <bigwalkdoe@users.noreply.github.com>
2026-11-28 23:11:25 +01:00

12 lines
412 B
YAML

# Optional SELinux overlay for enforcing hosts (Fedora, RHEL, Rocky, Alma).
# Labels bind mounts as private (:Z) so no other container can read ./keys
# (jwt.key, secret.key), ./data, or ./skills.
#
# Usage:
# docker compose -f docker-compose.yml -f docker-compose.selinux.yml up -d
services:
artex:
volumes: !override
- ./data:/app/data:Z
- ./keys:/app/keys:Z
- ./skills:/app/skills:Z