Skip to main content

Docker Compose

The Inigo plugin for Docker provides full observability and controls on all individual subgraphs. Follow the instructions to get up and running.

Get token

  • Set up a service and a token. If you still need one, follow Getting Started.

Integration

Note: this code snippet uses a starwars GraphQL example instance, make sure to replace it with your own service.

  1. Create a docker-compose.yml file

    version: "3.9"
    services:
    starwars: # example instance
    image: inigohub/starwars

    sidecar:
    image: inigohub/sidecar
    ports:
    - 80:80
    environment:
    INIGO_EGRESS_URL: http://starwars:80/query # replace with your GraphQL endpoint
    INIGO_SERVICE_TOKEN: "YOUR-INIGO-SERVICE-TOKEN" # can be stored in an .env file instead
    # env_file: .env
  2. Run the services

    docker compose up