zammad / zammad-docker-compose

Zammad Docker images for docker-compose
https://hub.docker.com/r/zammad/zammad-docker-compose/
GNU Affero General Public License v3.0
268 stars 207 forks source link

Zammad-NGINX can not write config file due to read-only #381

Closed strifel closed 10 months ago

strifel commented 10 months ago

Infos

Expected behavior

Actual behavior

Steps to reproduce the behavior

Further information

https://github.com/zammad/zammad-docker-compose/blob/07936ea7e0a46ddc34089684c045e4325e0a5d34/docker-compose.yml#L96 sets the /etc/nginx/sites-enabled path as read-only.

https://github.com/zammad/zammad/blob/74d5303cbf67c4507ccd0b78ac543f9fac533961/contrib/docker/docker-entrypoint.sh#L119 Writes the nginx config in

Further questions

Is there any reason why the init container has access to the nginx config as well? This threw me off quite a bit during the search for the problem.

Is there any reason why the nginx container has it mounted? This seems to have been added in https://github.com/zammad/zammad-docker-compose/commit/ffa1268a2aab5b459b255c63e004b011117b3c0f without further explanation

mgruner commented 10 months ago

Thanks for your report @strifel. It does not fail in the same way for me, but I agree that something is wrong with the current volume handling.