Skip to main content
The Portkey AI Gateway provides official Docker images for easy deployment. Run a single container with Docker or orchestrate multiple services with Docker Compose.

Docker Hub Image

The official Docker image is available at portkeyai/gateway on Docker Hub.

Quick Start with Docker

Run the latest version of the gateway with a single command:
The gateway will be available at http://localhost:8787.

Docker Run Options

1

Run in detached mode

Run the container in the background:
2

Mount configuration

Mount a custom configuration file:
3

Set environment variables

Pass environment variables to configure the gateway:

Docker Compose

For production deployments, Docker Compose provides a more maintainable approach.

Download Compose File

1

Download the compose file

Download the official Docker Compose configuration:
2

Start the services

Launch the gateway:
3

Verify deployment

Check that the service is running:

Docker Compose Configuration

Here’s the complete docker-compose.yaml file:
docker-compose.yaml

Customize Docker Compose

Extend the configuration for your needs:

Build from Source

You can also build the Docker image from source.

Dockerfile

The gateway uses a multi-stage build for optimal image size:
Dockerfile

Build Steps

1

Clone the repository

2

Build the image

3

Run your custom image

Docker Management

View Logs

Stop and Remove

Update to Latest Version

Health Checks

Add health checks to your Docker deployment:
docker-compose.yaml

Next Steps

Kubernetes

Scale your deployment with Kubernetes

Configuration

Configure the gateway for your needs