Best way to create Dockerised server

I have a web server running in my front room (with Fedora 31). I'd like to be able to set up a Docker environment on it so that when I need a new web app, whether it's WordPress, Rails, Laravel etc, I can simply spin up a container, connect it to the reverse proxy and database, and install my app, complete with Let's Encrypt certificates.

What's the best way to do this? I'm not too fussed on Kubernetes, and it seems that it's kind of designed for cloud platforms like AWS, DigitalOcean etc, not a single Linux server.

Would using Docker Compose to bring up an nginx container and a MySQL container, and then creating additional containers through Dockerfiles that link to those containers work? Or is there something else that would be easier?

submitted by /u/KiwiNFLFan
[link] [comments]
Source: Reddit