Unable to connect to docker container deployed on DigitalOcean droplet via browser

Posted May 13, 2021 556 views
DigitalOcean Droplets

I am scratching my head over the issue I am currently running into. I am trying to deploy this open-source software via docker using a digitalocean droplet. I have very little experience regarding docker and VSP but have learned a lot since taking on this project. I am using their deployment guide and I am using the droplet public ipv4 address as the host address because I haven’t purchased a domain until I am able to get it to work. Well, I am not running into any errors but after I get to step 8 and run $ docker-compose up -d, I am unable to access the web platform via the digitalocean droplets public ipv4 address and the port the frontend is utilizing (:3000, I have been able to get it to work on my local machine and accessing it via my browser)

Can anyone with more experience take a stab at following their guide and maybe explain what I am doing wrong and/or missing? I’ve googled for days looking for an answer but to no avail, any help would be appreciated

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 @junk860,

Do you have a firewall enabled on your Droplet like ufw or csf? In case that you are running your application on port 3000, you need to make sure that the port is allowed via your firewall.

Also if you check the status of your Docker containers, can you verify that they are up and running and that the frontend service is listening on port 3000?

You can do that with the following command:

docker ps -a