Report this

What is the reason for this report?

Web app not working with Caddy

Posted on May 16, 2024

Hi all,

I’ve created a droplet using the 1-click installer with Docker to install a Golang app that starts a server in port 4000 and I’m doing this in my production stage Dockerfile:

EXPOSE 4000
ENTRYPOINT ["./app"] --port 4000

However after running the Dockerfile and making sure the server is running, I want to go to my droplet IP address to make sure it worked, but it just shows the Caddy static website. However, going to the IP:4000 shows my app.

What do I need to do in order to see my web app in the default 80 port? Thanks!

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.