What's the problem
I can successfully access my React application through Nginx, but my Node API keeps returning me a
Bad Gateway
I don't know why Traefik cannot reach my Node container, though it seems to be up and accessible:
What I tried
Adding these two labels to the Node docker service, but didn't change anything, even by changing the port to 80 (which is what Node listens to)
Configuration seems fine as all containers are running on traefik network and Traefik Docker Configuration Discovery is set to the same network.
The Node Docker image does not expose a port, so Traefik does not know where to route to. So adding the port declaration via label should be one step to the solution.
We use purchased TLS/SSL certificates, in my experience we had to add tls=true to make it work. But it seems for you it works for the other container without.
Actually the problem came from my NodeJS server which was effectively listening to the port 3000, but had an unneeded argument that prevented the server to listen to incoming requests: