Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.06 KB

File metadata and controls

26 lines (16 loc) · 1.06 KB

Docker

GraphQL Protect provides a container image for your convenience. You can use this container image as is. You may supply configuration files, port mappings and other mounts for the functionalities provided.

Setting up

Pull

docker pull ghcr.io/ldebruijn/graphql-protect:latest

Run

docker run -p 8080:8080 -v $(pwd)/protect.yml:/app/protect.yml -v $(pwd)/schema.graphql:/app/schema.graphql ghcr.io/ldebruijn/graphql-protect:latest

This mounts the necessary configuration and schema files from your local filesystem onto your container, and exposes port 8080 to the host machine.

Networking

If you want to reach a process on the host machine, be sure to use host.docker.internal as the hostname for the proxy target, instead of localhost.

If you want to reach another container, be sure the two containers are in the same container network to be able to communicate with each other.