Question

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

Posted May 21, 2021 99 views
DockerDNS

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?

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.

×
Submit an Answer
1 answer

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