Skip to content

Docker (mail) environment settings prevent GUI configuration #1312

@aliebrich

Description

@aliebrich

Hi!

As a long-term (and very satisfied) Nextcloud user i'm working on my first installation via docker / docker-compose. Unfortunately it is way more troublesome than expected, one of my issues is the interaction between environment variables and NC GUI settings.
Let's look at this with the examples of mail settings.

As Auto configuration via environment variables states, there are several MAIL_ or SMTP_ variables which can be set.
These environment variables are picked up through config/smtp.config.php, which itself ends up in the docker image through Dockerfile & entrypoint.sh. So far so good, the environment configuration ends up in the running Nextcloud instance.

But problems arise as soon as you start changing these config parameters via the GUI. Nextcloud/GUI writes back to config.php. But as stated in Multiple config.php file (sic):

These custom files are not overwritten by Nextcloud, and the values in these files take precedence over config.php.

That means (and truly is the case) that whatever you configure in your browser will never end up in your run configuration. And even worse, changes in the GUI will sometimes just disappear, as they are again read from another config file. Very confusing indeed. ;-)

I expect that these problems also arise for other files vs. env. variables, as soon as you try to configure it via GUI.

Am i missing something here or is this really a design problem with cooperation of NC/server and NC/docker?

Best greetings,
Andi

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions