Domains do not work with a dockerized rust project.
I have tried several ways to make it work, both by just exposing the ports
- 3000
and by using expose:
.

17 Replies
Remove
container_name
, you may get the wrong logs
Don't bind port to host. That shouldn't have worked if you installed Dokploy the default way. It uses that port@Henrik Thanks for responding, Docker Compose is now like this but it still doesn't work for me.
Is it healthy?
Yes

You've added the route in the domain tab?
If you click on the name there, it isnt a bunch of containers that have died?
Yes I think everything is fine but the domain doesn't work.
GitHub
GitHub - bernabedev/rust_search_engine: A high-performance, work-in...
A high-performance, work-in-progress search engine built from scratch in Rust - bernabedev/rust_search_engine
I'll try
It's not a healthy app

Thats true, Apparently I don't get along very well with Docker.
No worries. That was an easy fix
I'll just validate it on a server first
And maybe fix up a bit on the Dockerfile
Yup. Worked like a charm

@Henrik Thanks. I really wouldn't have found what was going on without your help. I see I needed to install
curl
on Debian. To verify the health checkYup. It was just that
You are literally the best - thank you! @Henrik
I tried some of my old tricks with docker caching, but it din't work so well on projects that is this splitted up into several crates. Wasn't any speedup gain there
Your Dockerfile can be improved quite a bit. I noticed it has to recompile all the dependencies for any changes made to your source code. This one will cache your built dependencies a lot better.