This guide will help you install Listmonk with proper SSL certification on your domain using Docker.
Create a Listmonk Folder and Navigate Into It
Open your terminal and run the following commands to create a new directory named 'listmonk' and navigate into it:
mkdir listmonk && cd listmonk
Do not use sudo to create directory
Clone the Repository Inside the Listmonk Folder
Run the following command to clone the repository into the 'listmonk' directory:
git clone https://github.com/samyogdhital/listmonk-caddy-reverse-proxy.git .
Follow Listmonk manual installation on production
Head over to this repo and follow the usal installation https://listmonk.app/docs/installation/#manual-docker-install_1
Make changes to Caddyfile inside ./caddy/Caddyfile
Provide your email and the domain where you will be hosting your listmonk instance. (It can be subdomain as well)
Now for the final step run all the containers in detached mode and you should be good to go.
docker compose up -d
You should now have Listmonk running on your EC2 instance with Lets encrypt SSL certificate.