Report this

What is the reason for this report?

I want to run portainer on portainer.domain.com instead of ip:9000

Posted on May 21, 2021

Dear all,

I have been browsing for a while now, checking some tutorials but I am not sure if they are exactly doing what I want.

I have a docker droplet running, inside I have a portainer container and a metabase container. I would like to run more eventually.

Right now I can only access them with my droplet public IP and port number. However I wish to setup custom subdomains to direct to these adresses:

ip:9000 -> portainer.domain.com ip:3000 -> metabase.domain.com

How can I make sure this works?



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,

You could achieve that with an Nginx reverse proxy setup.

You could follow the steps here on how to set that up:

https://www.digitalocean.com/community/questions/how-to-host-multiple-docker-containers-on-a-single-droplet-with-nginx-reverse-proxy

Or instead, you could follow the steps from this video here:

Let me know how it goes! 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.