Closed Julianoe closed 5 years ago
Hi! When dealing with containers that don't use 80 or 443 port with nginx-proxy and lets-encrypt-nginx-proxy-companion, I set an additional container that serves as a reverse proxy between nginx-proxy and the non-80-port container. Not very graceful, but works seamlessly.
I have the same issue with the same setup (changed my own domain to example.com). I cannot get https connection using:
docker run -d \ --name db \ --net emdnet \ --restart=unless-stopped \ mongo:3.0 --smallfiles
docker run -d \ --name rocketchat \ --net emdnet \ --restart=unless-stopped \ -e ROOT_URL=https://chat.example.com \ -e "VIRTUAL_HOST=chat.example.com" \ -e "LETSENCRYPT_HOST=chat.example.com" \ -e "LETSENCRYPT_EMAIL=admin@example.com" \ --link db \ rocket.chat
@cybergrunge Do you have a configuration that works?
In the environment variables for rocketchat container i set Accounts_UseDNSDomainCheck: "false"
instead of true.
@gurumark you should try to use this.
Do you use the nginx-proxy-companion method?
Thanks. I discovered that in other thread. It works!
I've been experiencing the same issues, but with traefik as opposed to nginx-proxy to proxy into the container. I'm going to try Accounts_UseDNSDomainCheck: "false"
and see if that improves the situation. Thanks!
Why are you setting Accounts_UseDNSDomainCheck:
? Seems to work fine with the Jwilder proxy and lets encrypt companion.
Looks like this is resolved and not a bug but more of a support type issue.
Closing
Hi guys!
note:
I'm trying to make a RocketChat instance work in parallel with other services (i plan to have rocket+nextcloud on a server) with letsencrypt-nginx-proxy-companion. I've already managed to use this tool on another project to run multiple Wordpress/mysql installs on the same server.
Here are the two files i use
docker-compose.yml for RocketChat
docker-compose-yml for the proxy
Any idea? I think that could be a great thing to have a working way of doing this for everyone. It would facilitate a lot for people wanting to run RocketChat along other services (a website/a cloud) that run via Docker.