-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker compose environment variables not taking affect after initial setup #189
Comments
Hello, I hope I can clarify things a bit. As you found out, the environment variables are only used by the initial setup. This is intended and by design. It might not be the best solution, but it was the easier one. I see that many other services handle things a little differently, so we might have a chance to improve here. For your problem there are two solutions: If you are trying to get a new installation of nextcloud running and have no data that could be lost, you can just start from scratch. But be careful, stopping and recreating containers will preserve the data! To actually delete the screwed up configuration you have to explicitly tell docker to remove the volumes where your data and configuration is stored. You can achieve this by adding the
If you want to keep your data, the only way to fix your setting is editing your config.php manually. Check out the nextcloud docs for the correct parameters. |
Sorry for closing... |
Thank you for your time. I have done the changes I needed and am very happy with the current install. |
Yeah, think so to. Reopen if another related question occurs. |
Hello!
TLDR:
MYSQL_HOST
does not modifydbhost
inside config.php after initial setup.I modified the basic docker compose file suggested in the README by adding the following:
Now that I understand compose creates a network between the services and I do not need to expose the port to host, I removed the above and understand that the following is sufficient.
However this did not modify
dbhost
inside /html/config.php as expected.I added the following to the docker-compose.yml:
And this did not modify
dbhost
, it was still the same value as initial setup.I fixed my problem by modifying
dbhost
to justdb
.Problems
db
tonextcloudDataBase
, andlinks:
tonextcloudDataBase
it breaks the deployment although docker-compose networks will be able to resolvehttp://nextcloudDataBase
MYSQL_HOST
within docker-compose it will look for the correct host after a container has been removed and recreated.Question
dbhost
fixed my network issue, isMYSQL_HOST
intended to modify any other variable/aspect of the system?Thank you for your time.
The text was updated successfully, but these errors were encountered: