Skip to content

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

Closed
@strifel

Description

@strifel

Infos

  • Docker version: 24.0.6
  • Docker-compose version: 2.11.1
  • Operating system (Docker host): Ubuntu 22.04

Expected behavior

  • The zammad-nginx container writes a working nginx config

Actual behavior

  • /docker-entrypoint.sh: line 119: /etc/nginx/sites-enabled/default: Read-only file system

Steps to reproduce the behavior

  • Use docker-compose file from this repository

Further information

- zammad-config-nginx:/etc/nginx/sites-enabled:ro

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 ffa1268 without further explanation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions