nginx-proxy-automation: does not work out of the box

When I clone your git and follow your instructions, I am getting a lot of errors, with just the default configuration. The only modification I have done is to adjust the NGINX location in the .env to “./” because I can’t figure out where you are trying to have this point to. Maybe this is the problem? I don’t have an NGINX installed because it wasn’t a prerequisite of this docker.

Here is what I’m seeing:

# ./start.sh 
Error response from daemon: network with name webproxy already exists
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 16288  100 16288    0     0   171k      0 --:--:-- --:--:-- --:--:--  172k
Pulling nginx-web (nginx:latest)...
latest: Pulling from library/nginx
Digest: sha256:31b8e90a349d1fce7621f5a5a08e4fc519b634f7d3feb09d53fac9b12aa4d991
Status: Image is up to date for nginx:latest
Pulling nginx-gen (jwilder/docker-gen:latest)...
latest: Pulling from jwilder/docker-gen
Digest: sha256:f86c5374c3384b7de37c221e7fa450df357d2bf473db3eedd0375cf39288d9cc
Status: Image is up to date for jwilder/docker-gen:latest
Pulling nginx-letsencrypt (jrcs/letsencrypt-nginx-proxy-companion:latest)...
latest: Pulling from jrcs/letsencrypt-nginx-proxy-companion
Digest: sha256:3181bf5c683c647c4d53526706ca5bce56b37ff7d8c610bd70e194026d174a9a
Status: Image is up to date for jrcs/letsencrypt-nginx-proxy-companion:latest
Starting nginx-web ... 
Starting nginx-gen ... 
Starting nginx-web
Starting nginx-gen
Starting nginx-letsencrypt ... 
Starting nginx-gen ... error

Starting nginx-letsencrypt ... error

Starting nginx-web ... error

ERROR: for nginx-web  Cannot start service nginx-web: Bind mount failed: '/volume1/docker/docker-compose-letsencrypt-nginx-proxy-companion/html' does not exists

ERROR: for nginx-web  Cannot start service nginx-web: Bind mount failed: '/volume1/docker/docker-compose-letsencrypt-nginx-proxy-companion/html' does not exists

ERROR: for nginx-gen  Cannot start service nginx-gen: Bind mount failed: '/volume1/docker/docker-compose-letsencrypt-nginx-proxy-companion/certs' does not exists

ERROR: for nginx-letsencrypt  Cannot start service nginx-letsencrypt: Bind mount failed: '/volume1/docker/docker-compose-letsencrypt-nginx-proxy-companion/certs' does not exists
ERROR: Encountered errors while bringing up the project.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

I too am running on Synology, and I now have this running. It’s been a while since I set it up on my production (Ubuntu) server but it seems like Synology does not work same way with rights - and does not created folder automatically.

Anyway my secret was to run the commands below to create the data directory and set the permissions correctly.

mkdir -p data/certs mkdir data/htpasswd mkdir data/conf.d mkdir data/vhost.d mkdir data/html chgrp -R 101 data chmod -R g+rwx data

Another issue I was facing was that Synology apparently insists on running a HTTP listener no matter what you enable but I have solved that by mapping external ports 80/443 to Synology 81/444 and made the script configureable. I’ll create a PR once I have tested and documented this properly (in a few days I hope).

I had the same issue with the same error turned out that docker installs from snap causes this. solved it by removing docker entirely and reinstalling it again. https://stackoverflow.com/a/54492532/5641227

ok. I guess I’ll go look at https://github.com/buchdag/letsencrypt-nginx-proxy-companion-compose

thanks for trying!

I guess my question is, are you requiring that I have nginx installed at some other location? If so, why don’t you include it in your compose? I do not have the USE_NGINX_CONF_FILES set, so I’m just confused why it’s set up this way. Any help is appreciated.