docker - nginx - certbot https 설정하기
docker 환경에서 nginx와 certbot을 띄우고 https를 적용해보자. 디렉터리 구조는 다음과 같다 application.yml version: "3" services: nginx: image: nginx restart: unless-stopped ports: - 80:80 - 443:443 volumes: - ./data/nginx:/etc/nginx/conf.d - ./data/certbot/conf:/etc/letsencrypt - ./data/certbot/www:/var/www/certbot command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'" c..
2023.07.28