Skip to content

Add nginx sidecar container

Michele Valsecchi requested to merge issue/9 into master

Closes #9 (closed)

Config files and SSL keys are now mounted on an external volume. The Nginx container runs without root privileges. Due to how Docker handles secrets and volumes (without swarm mode), we need a side container to adjust permissions on SSL keys/certs and config files so the Nginx container can read them.

Background on the use of an init container with Docker Compose and a non-root Nginx container: We avoid using Docker Compose secrets and Docker Compose deploy since they require swarm mode to properly set GID/UID:

For more context, refer to:

Merge request reports