graphql-kit / graphql-faker

🎲 Mock or extend your GraphQL API with faked data. No coding required.
MIT License
2.69k stars 225 forks source link

Adding a local docker file so you can run non-released code #110

Closed Robvio closed 4 years ago

Robvio commented 4 years ago

File to allow people to build a docker continer that isn't tied to the main line release - so we can run custom code while we wait for PRs (or to allow a bit of forking if the PR gets rejected).

docker build -f Dockerfile.local . -t graphql-faker

Then in your docker-compose, you can just swap the image for the real one:

  service-mock:
    image: graphql-faker:latest
    command: myschema.graphql
    ports:
      - "9002:9002"
    volumes:
      - ../myschema.graphql:/workdir/myschema.graphql