Skip to content
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

Config.json not loaded with docker volume #209

Open
ncunningham-stairsupplies opened this issue May 9, 2023 · 1 comment
Open

Config.json not loaded with docker volume #209

ncunningham-stairsupplies opened this issue May 9, 2023 · 1 comment

Comments

@ncunningham-stairsupplies
Copy link

ncunningham-stairsupplies commented May 9, 2023

With a default setup of a docker-compose file

version: "3"
services:
federation:
image: ghcr.io/movio/bramble
ports:
- "8082:8082"
- "8083:8083"
volumes:
- ./config.json:/config.json

running docker compose up bramble fails to find any of the services in the config.json.
running bramble -config config.json starts the gateway perfectly fine

@pkqk
Copy link
Member

pkqk commented May 30, 2023

Hi @ncunningham-stairsupplies can you post more details about your setup? I don't think you're talking about the example docker-compose.yaml file? That starts up cleanly for me with all 3 example services:

bramble-nodejs-service-1         | example nodejs-service running on :8080
bramble-gqlgen-service-1         | 2023/05/30 03:04:35 example gqlgen-service running on :8080
bramble-graph-gophers-service-1  | 2023/05/30 03:04:37 example graph-gophers-service running on :8080
bramble-gateway-1                | {"level":"info","msg":"service was updated","service":"graph-gophers-service","time":"2023-05-30T03:04:40.424493754Z","version":"0.1.0"}
bramble-gateway-1                | {"level":"info","msg":"service was updated","service":"nodejs-service","time":"2023-05-30T03:04:40.436242212Z","version":"0.1.0"}
bramble-gateway-1                | {"level":"info","msg":"service was updated","service":"gqlgen-service","time":"2023-05-30T03:04:40.437615462Z","version":"0.1.0"}
bramble-gateway-1                | {"level":"info","msg":"rebuilding merged schema","time":"2023-05-30T03:04:40.437636837Z"}
bramble-gateway-1                | {"level":"info","msg":"enabled plugins: []","time":"2023-05-30T03:04:40.437673379Z"}
bramble-gateway-1                | {"config":{"id-field-name":"","gateway-address":"","disable-introspection":false,"metrics-address":"","private-address":"","gateway-port":8082,"metrics-port":9009,"private-port":8083,"services":["http://nodejs-service:8080/query","http://gqlgen-service:8080/query","http://graph-gophers-service:8080/query"],"loglevel":"debug","poll-interval":"10s","PollIntervalDuration":10000000000,"max-requests-per-query":50,"max-service-response-size":1048576,"Plugins":null,"Extensions":null,"QueryHTTPClient":null},"level":"debug","msg":"configuration","time":"2023-05-30T03:04:40.437677712Z"}
bramble-gateway-1                | {"addr":":8082","level":"info","msg":"serving public handler","time":"2023-05-30T03:04:40.43805192Z"}
bramble-gateway-1                | {"addr":":9009","level":"info","msg":"serving metrics handler","time":"2023-05-30T03:04:40.438090462Z"}
bramble-gateway-1                | {"addr":":8083","level":"info","msg":"serving private handler","time":"2023-05-30T03:04:40.438118295Z"}

I'm running Docker Desktop 4.19.0 for OSX

Are the services you're trying to federate via bramble accessible from the compose network the container is running in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants