Skip to content
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

container does not create the contents of nginx folder once volume mount it #2

Closed
GeekRhapsody opened this issue Jul 3, 2022 · 4 comments

Comments

@GeekRhapsody
Copy link

When mounting nginx folder to follow the setup authentication instructions, no files are created inside that folder, and instead the container exits with this error:
nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)

@TuRDMaN
Copy link

TuRDMaN commented Aug 4, 2022

Same with the /app folder. I had to copy the contents manually from within the container.

@haudankaivajasi
Copy link

Same with the /app folder. I had to copy the contents manually from within the container.

How did you achieve this?

@reddragond
Copy link

@haudankaivajasi create the container with the bind mounts pointing to different folders. I used ./app:/app2 and ./nginx:/etc/nginx2

Then you can run docker exec ownfoil cp -r /app/* /app2 && cp -r /etc/nginx/* /etc/nginx2
After that you stop the container and relaunch it with the correct bind mounts

@a1ex4
Copy link
Owner

a1ex4 commented Feb 15, 2023

Hey, indeed the way to configure the nginx basic auth was less than ideal.

I released a new version where this has completely been rewritten to make it more straightforward, please see the new documentation for the 1.1.0 version.

@a1ex4 a1ex4 closed this as completed Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants