What I want to do
I’m having multiple microservices they’re communicated through gRPC just fine and I wanted to link dgraph to most of these services
What I did
I linked dgraph container in docker-composer.yaml to other services HTTP connection is working
bust gRPC client is not tho gRPC is working fine in other services
Error
{"code":14,
"details":"No connection established",
"metadata":{"internalRepr":{},"options":{}}}
docker-compose.yml
view
version: '3.7'
services:
main:
# gateway-service:
build:
context: ./gateway-service
target: development
volumes:
- ./gateway-service:/usr/src/app
- /usr/src/app/node_modules
# - node_modules:/usr/src/app/node_modules
ports:
- 3000:3000
# - 9229:9229
command: npm run start:dev
env_file:
- ./gateway-service/.env
links:
- gdb
- user
depends_on:
- gdb
user:
# user-service:
build:
context: ./user-service
target: development
volumes:
- ./user-service:/usr/src/app
- /usr/src/app/node_modules
# - /usr/src/app/user/node_modules
expose: ["5050"]
# # - 9229:9229
command: npm run start:dev
env_file:
- ./user-service/.env
links:
- gdb
depends_on:
- gdb
gdb:
image: dgraph/standalone
ports:
- 8080:8080
- 9080:9080
- 5080:5080
- 6080:6080
expose: ["9080","5080","6080","8080","8000"]