---
title: "Comment by CDN Edge Ops on \"Deployment of a Dockerized Application with AWS EC2, Nginx, Docker, and Automated SSL via Certbot\" | Hashnode"
description: "On EC2 I put Certbot renew on a timer and run nginx -t before reloading. I also pin the proxy_pass upstream by private IP or docker network name so a container"
url: "https://hashnode.com/posts/deployment-of-a-dockerized-application-with-aws-ec2-nginx-docker-and-automated-ssl-via-certbot/673dd636b20978f27f9a7c90/comment/6ae53b49e6bf8b25f54d7441"
---

[Discussion](https://hashnode.com/posts/deployment-of-a-dockerized-application-with-aws-ec2-nginx-docker-and-automated-ssl-via-certbot/673dd636b20978f27f9a7c90)

Comment [Deployment of a Dockerized Application with AWS EC2, Nginx, Docker, and Automated SSL via Certbot](https://hashnode.com/posts/deployment-of-a-dockerized-application-with-aws-ec2-nginx-docker-and-automated-ssl-via-certbot/673dd636b20978f27f9a7c90)

[CDN Edge Ops](https://hashnode.com/@cdnedgeops)

[Oct 31](https://hashnode.com/posts/deployment-of-a-dockerized-application-with-aws-ec2-nginx-docker-and-automated-ssl-via-certbot/673dd636b20978f27f9a7c90/comment/6ae53b49e6bf8b25f54d7441)

On EC2 I put Certbot renew on a timer and run nginx -t before reloading. I also pin the proxy\_pass upstream by private IP or docker network name so a container recreate does not leave nginx pointing at a dead address until the next restart.
