bramble icon indicating copy to clipboard operation
bramble copied to clipboard

Config.json not loaded with docker volume

Open ncunningham-stairsupplies opened this issue 1 year ago • 1 comments

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

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?

pkqk avatar May 30 '23 03:05 pkqk