Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Docker Compose


Note: this code snippet includes 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
         # env_file: .env
         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
    
  2. Run the services

     docker compose up -d