Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Examples using Docker Compose

This directory contains examples that demonstrate how to use the Inference Gateway with Docker Compose.

Prerequisites

  • Docker
  • Docker Compose

Available Examples

  • Basic - Simple setup with a single model provider
  • MCP - Model Context Protocol integration with multiple tool servers
  • Hybrid - Configuration with multiple model providers (cloud and local)
  • Tools - Function calling and tool usage examples
  • Authentication - Adding authentication to your gateway
  • Monitoring - Metrics collection and visualization with Prometheus and Grafana

Quick Start

Each example directory contains:

  • A README with specific instructions
  • A docker-compose.yml file
  • An .env.example file

To run any example:

  1. Navigate to the example directory:
cd examples/docker-compose/[example-name]
  1. Copy the environment file and customize as needed:
cp .env.example .env
  1. Start the services:
docker compose up -d
  1. Follow the specific instructions in the example's README for testing and usage

Environment Variables

Common environment variables used across examples:

Variable Description Default
SERVER_PORT Port the gateway listens on 8080
LOG_LEVEL Logging level info
PROVIDER_*_API_KEY API key for specific providers -

Additional Resources

Support

If you encounter any issues with these examples, please open an issue on GitHub.