Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: mautic.sivangarr.com
I basically ran these command:
sudo a2ensite mydomain.conf sudo a2dissite 000-default.conf sudo systemctl restart apache2 sudo ufw allow http sudo certbot --apache --agree-tos --redirect --hsts --staple-ocsp --email <emailaddress> -d mydomainname.com
It produced this output:
The SSL certificates were created successfully.
My web server is (include version): Apache/2.4.41 (Ubuntu)
The operating system my web server runs on is (include version):Ubuntu 20.04.2
My hosting provider, if applicable, is: DigitalOcean
I can login to a root shell on my machine (yes or no, or I don't know): Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no
The version of my client is (e.g. output of
certbot --version or
certbot-auto --version if you're using Certbot): certbot 0.40.0
I suppose the issue I'm having requires some Docker expertise, and I'm hoping there are Docker experts in this community. All I'm trying to do is enable SSL for my Mautic instance that is running in a Docker container. I was able to get LetsEncrypt certificate installed successfully on the host, but I'm still having issues trying to figure out how to enable it for the Docker container. I read many differnet postings but most are using Ngnix and basically I'm going from one rabbit hole to another. Seems like this should be straightforward, but I'm missing something.
So far, in my docker-compose.yml file, I've added the binding of port 4430:443 to the Mautic container. I've also tried to mount the volumes, and I think this is where I'm not doing it right.
ports: - 8080:80 - 4430:443 volumes: - mautic_data:/var/www/html - /etc/letsencrypt/live/mydomain.com:/var/lib/docker/volumes/root_mautic_data/_data/???
Should I mount the certificates to the /etc/ssl/certs directory inside the container?
If so, how do I actually properly reference this path from the host (the Mautic container root directory is /var/www/html)?
netstat -tulpen on the host and it shows port 80 and 443 listening.
Is there anything else I need to do?