Nginx with Docker
1
2
3
4
5
6
7
8
docker run \
--rm \
--name nginx \
-v ~/nginx/nginx.conf:/etc/nginx/nginx.conf:ro \
-p 8080:80 \
nginx # -d
docker run -d -p 80:80 --read-only -v $(pwd)/nginx/nginx-cache:/var/cache/nginx -v $(pwd)/nginx/nginx-pid:/var/run nginx
- https://hub.docker.com/_/nginx
- https://github.com/wmnnd/nginx-certbot
- https://pentacent.medium.com/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71
- https://github.com/wmnnd/nginx-certbot/issues/52