Question

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

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?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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