-
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
[example docker-compose] Mounting nginx.conf fails with remote docker #104
Comments
The error indicates that docker is trying to mount a single file (your |
@SnowMB OK, I figured it out. docker-compose cannot bind-mount local files to a remote docker. I fixed it by doing a nginx build with Dockerfile:
and refer to it in my
I had to do the same for I'm now fighting docker because it assigns user root:root to named volumes and thus NextCloud can't read in /var/www/html/config and thus can't start... |
Yeah, we are aware of that poblem. For now I would recommend using only one volume for nextcloud: The whole If you want to use multiple volumes you can change the permissions by hand. See #75. |
OK, just to be sure let me show what I had so far. If ever this is related to #75 or #69, then I'll move there. Please forgive me if this is the case. I'm a docker beginner and permission management is painful. In advance, thanks for your help! Naked
|
Hey, You used the wrong folder. Let me explain: First you have to know that the whole So the file you copied into the volume is replaced by the default config file. If you check the |
@SnowMB Oh I see! Thank you, that part now works – I don't have a blank page! BTW, maybe I missed something in the documentation but using |
Yeah I'm sorry, but until now I did not anticipate to manipulate the sources directly. But I think this is an elegant solution for problems like yours and #91. I wrote a quick hint there. So thanks for the idea 😄 . I will add this to the examples to do list. |
@SnowMB Also in the docker-compose examples the version prefix for nextcloud is missing (i.e. |
you're right. thanks again 😁 |
I try to use your example docker-compose. I just modified the domain, passwords and email to all use variables. I did put the
nginx.conf
file next to thedocker-compose.yml
file (and checked the permissions of those file).But when I do
every container launches correctly except the web container:
Do you have any idea on how I can fix this ? I found this error a lot on the web but no working fix.
The text was updated successfully, but these errors were encountered: