selloween / docker-multi-wordpress

Run multiple WordPress Docker containers with NGINX Proxy, LetsEncrypt and PHP Composer
GNU General Public License v3.0
75 stars 18 forks source link

multiple subdomains per container #12

Closed stefan-frank23 closed 4 years ago

stefan-frank23 commented 4 years ago

Hi, got it to work. Except problems with the following:

VIRTUAL_HOST=domain1.com,www.domain1.com
VIRTUAL_PORT=8000
LETSENCRYPT_HOST=domain1.com,www.domain1.com
LETSENCRYPT_EMAIL=mail@domain1.com

It doesn't get certificates. HTTP works fine.

Any Ideas?

selloween commented 4 years ago

The syntax is correct and should work. I can't really tell without seeing the error log. The Letsencrypt container has to have access to the internet for the ACME challenge to work. If you changed your DNS records, it might take some time until they resolve correctly.