Skip to content

[graphiql] Suggestion: Incorporate my Docker image? #3991

Open
@Radiergummi

Description

@Radiergummi

Hey there!

We have a bunch of internal services that use GraphQL, and we had a need for a simple playground-like app to deploy alongside them. As we usually use Docker containers for such things, I immediately went looking for something akin to Apollo Playground or GraphiQL as a standalone container, but to my surprise, I couldn't find one—at least none that were maintained, up to date, trustworthy, or simple to deploy.

So, I went and built my own from GraphiQL. Essentially, it's the default flavour, built with Vite as a very efficient bundle, and served by Caddy. This also allows to inject the GraphQL URL dynamically on the server, making it possible to configure it as an environment variable at runtime.

This image is published on the GitHub Container Registry and available for anyone to try.
However, I was wondering if the GraphiQL community had any interest in adding an official Docker image to the distribution? That would certainly be a lot more confidence-instilling to users, and could be automatically released alongside all updates.

If you are interested, I'd be glad to help transferring the image and build process to you; it would probably be good to have different tags for all variants, too. Docker images are, in my opinion, a fantastic way to try out something, and they cover a lot of use cases that would require a build step otherwise.

Here's the repository:
https://github.com/matchory/graphiql-docker

Spin up the image quickly using:

docker run --rm -it \
    -e GRAPHQL_ENDPOINT=http://localhost:4000/graphql \
    -p 8080:80 \
  ghcr.io/matchory/graphiql

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions