Best Docker Setup for a Full-Stack App with Certbot and Nginx

0
20
Asked By CreativeTaco93 On

Hey folks! I'm trying to create a straightforward setup for my application that includes Certbot, Nginx as a reverse proxy, two backends, and a frontend Angular app. My current thoughts are to run Certbot on the host since using it in Docker seems overly complicated for my standalone setup. I'm also questioning whether I should run Nginx in Docker, as I don't see a lot of benefits to that. For the backends, I'm planning to dockerize them using Docker Compose. As for the frontend, I'm unsure whether I should host it directly on my machine since Nginx will be running there or if I should containerize it too. What do you all think about this setup?

3 Answers

Answered By TechSavvyNerd On

It sounds like a cool project! If you're mainly working on this to learn something new, consider trying Kubernetes for easier management and scaling in the future. If it's more for practical use, perhaps using AWS's ACM could simplify your cert management. Nginx will work great as a reverse proxy for your frontend, but there are simpler alternatives like Caddy that can automate cert issuance and serve challenges; it might be worth a look!

Answered By DockerDude42 On
Answered By DockerDude42 On

Caddy is indeed a great option! It's way easier to set up compared to Certbot and works well within Docker. If you're aiming for reproducibility, keeping everything in a single Docker Compose file is a smart move. And if you're looking for high availability, you might want to explore some container orchestration tools, like ECS or Fargate, even if they're a bit more complex.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.