-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How to connect Orleans Client to Orleans Server in Docker? #8985
Comments
UseLocalhostClustering Is made to connect on same computer one silo and one client for dev purpose. With the docker compose you create a virtual network where every container have a virtual IP in it like theire was on separate computer. You can:
Attention: Solution 2 will only work with One silo. Orleans is designed to use a DB a meeting point for cluster nodes (Silo) and/or clients. Through docker it's easy to have one. |
The host.docker.internal should be mentioned in the Orleans-Server? I am using UseDevelopmentClustering for the server? Should I mention host.docker.internal for the PrimarySiloEndpoint, insteand of IPAddress.Loopback or IPAddress.Any?
This host.docker.internal:host-gateway should be mentioned in the docker-compose, for the server container? |
@cameliaonu It must be configured in both client and silo. In the docker compose you must write the redirection as extra host. for the AdvertisedIPAddress, i'm not sure of what is for. sorry |
I try to deploy Silo client and silo server on Docker via docker-compose, but I get error that silo client cannot connect to other container on port 30000. I set upped containers for talking, and I can send simple http request from first project to second and get response. But I can't run project using Orleans. This is code for client:
Server code:
In the future I have to use UseRedisClustering instead a UseLocalhostClustering. This project successfully run in local PC, but in Docker I get exception ''Connection attempt to endpoint S127.0.0.1:30000:0 failed". This is Dockerfile.silo for server project:
And Dockerfile for client project:
And docker-compose:
As you are seen, all parts configured well, but I don't know why this doesn't work. Please, help me resolve this problem, because I did 250 container builds tries for last two days and can't solve this alone
The text was updated successfully, but these errors were encountered: