elixir-mint / mint

Functional HTTP client for Elixir with support for HTTP/1 and HTTP/2 🌱
Apache License 2.0
1.37k stars 112 forks source link

Ensure correct SELinux labeling of container files on SELinux enabled systems. #406

Closed xanderificnl closed 1 year ago

xanderificnl commented 1 year ago

While attempting to add a naive "Happy Eyeballs" option for testing and experimentation, I encountered a "permission denied" error when running the docker-compose command. It was not immediately apparent that SELinux was the cause of the issue, making it challenging to identify the root cause.

To resolve this issue, this commit adds the :z mount option, which ensures SELinux compatibility by addressing the permission issues caused by SELinux when the Caddyfile is mounted without the appropriate label.

It's important to note that this change should only affect systems with SELinux enabled.