Report this

What is the reason for this report?

how to do reverse proxy on docker

Posted on October 14, 2020

I have a server and I am using Ubuntu 20.04, nginx , mosquitto and node-red and docker , let’s call the website http://mywebsite.com. The problem that I am facing that I have created a client lets call it client1 in docker so the URL will be http://mywebsite.com/client1 and I want to establish an MQTT connection via mosquitto and I’m sending the data on topic test

The problem that on node red node of MQTT when I write the IP address of my mosquitto container it works Example link But if I change the IP address 192.144.0.5 with mywebsite.com/client1 I can’t connect to mosquitto and I can’t send or receive any form of data Example link any idea on how to solve this problem



This textbox defaults to using Markdown to format your answer.

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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there @zaouaouizakaria,

Do you get any errors when you add your domain name? I could suggest checking your logs with the docker logs container_id command.

Also in order to use your domain name instead of your IP address, you would need to configure your DNS so that your A record points to the IP address of your server.

After the DNS change, it can take up to 24-48 hours for the DNS to propagate over the Globe.

Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.