Home Nginx Docker에 띄우기 (+HTTPS)
Post
Cancel

Nginx Docker에 띄우기 (+HTTPS)

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

http://localhost/

  • 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
This post is licensed under CC BY 4.0 by the author.

[MacOS] NGINX 설치 및 환경 설정

[FastAPI] Dockerize