Docker Nginx-proxy and letsencrypt not working

Hi, I’m writing this out of frustration, after reading all available tutorials and docs, but apparently I’m missing something important.

I want to revamp my website [MYDOMAIN] using docker and create a static website, a POSTGRES container, and some Dockerized apps. I started out registering MYDOMAIN on Digital Ocean Network section with www and without. Then: I cloned and started I cloned Create a .env with my Digital Ocean IP:

Set the IP address of the external access Interface


After that if I run


And I get “it works” results then I run ./

After that I registered a subdomain portainer.MYDOMAIN I cloned And updated the following parameters: DOMAINS=,www.,portainer. MAIN_DOMAIN=portainer. PORTAINER_SSL_PATH=/path/to/your/certs PORTAINER_SSL_CERTIFICATE=/certs/ MYDOMAIN.crt PORTAINER_SSL_KEY=/certs/ MYDOMAIN.key Then I try to visit all my domain and portainer domain always with different errors Can somebody point me in the right direction or suggest a tutorial?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!