Multiple sublevel domain for one secondlevel : wohto #808
Replies: 7 comments
-
You got this right, you can't have the same base domain ( = first entry) for two different containers. Additionally you can't reuse the same domain on different containers |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer!
Or is there any other solution using frontproxy/SSL-companiopn? |
Beta Was this translation helpful? Give feedback.
-
Let me complete my previous answer as it was quite uncomplete. First regarding You can't reuse domains for more than one container. That's a basic principle of a reverse proxy based on SNI in general and of So
doesn't work, because in the configuration file that |
Beta Was this translation helpful? Give feedback.
-
The way The companion will attempt to create / renew a certificate for every The ACME client ( BUT, because the companion put certificates in folders named after the first domain in the For example, something like
(same base -first- domain, same set of domains, different ordering) Will work and generate only one certificate if the two containers are started at the same time. If you don't start both at the same time, the first certificate creation will fail as one of the domains ( You could, theoretically, have a a hundred containers each with a single domain as This is however not a recommended way of using this container and considered unsupported for now, as the container lacks the mechanics needed to make it work consistently. The recommended way is that each container have its own set of domains, and that all the domains set in the |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your explanation! I got it now (i hope so at least).
...
If that does the trick, everything is perfect... Thanks, |
Beta Was this translation helpful? Give feedback.
-
Yes, this is the "normal" way of using those two containers together. Do you mind me asking why you thought adding |
Beta Was this translation helpful? Give feedback.
-
OK, that really helps me..
But as this is not needed everything is fine. |
Beta Was this translation helpful? Give feedback.
-
This is a question on how to solve the following problem:
How should I indicate within the docker-compose.yml the main domain if I use several subdomains (in different dockers) based on the same second level domain?
Example:
Docker 1 : docker-compose.yml: <Application 1>
...
...
Docker 2 : docker-compose.yml: <Application 2>
...
((This could even be more complicated if I also want "example.com" to point to the same host/docker, i.e.
My problem is that when the SSL is created for the "application 2" the SSL-certificates for "application 1" gets lost / is no longer valid.
Maybe it is not OK to set the "main domain" (example.de and/or example.com) as first entries in both docker-compose??
Thanks a lot,
Pascal
Beta Was this translation helpful? Give feedback.
All reactions