docker-nginx-certbot icon indicating copy to clipboard operation
docker-nginx-certbot copied to clipboard

Mount nginx_secrets volume on host with directory binding

Open keithics opened this issue 1 year ago • 1 comments

Adds the option to mount the nginx_secrets volume on the host

keithics avatar Jan 24 '24 14:01 keithics

Isn't it just easier to change the

volumes:
      - nginx_secrets:/etc/letsencrypt

to

volumes:
      - ./nginx_secrets:/etc/letsencrypt

if you are interested in making this a bind mount instead?

The current nginx_secrets volume mount is just an example in case you want to use that instead of bind mounting it. Or am I missing something here?

JonasAlfredsson avatar Jan 24 '24 14:01 JonasAlfredsson

Example file now updated with explanation of difference between the two mount types: https://github.com/JonasAlfredsson/docker-nginx-certbot/commit/77ea6ad00cc0d0741339a7ebe76cf0cccb0130d3

JonasAlfredsson avatar May 21 '24 19:05 JonasAlfredsson