Skip to content
🎯 New workshop: Govern AI Costs in Real Time — Hands-On with agentgateway agentgateway has joined the Agentic AI FoundationLearn more

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

Page as Markdown

Deploy with Docker

Overview of how to deploy agentgateway with Docker.

To run agentgateway as a Docker container, agentgateway publishes official Docker images at cr.agentgateway.dev/agentgateway.

Docker

To run agentgateway with Docker, you may either mount your configuration file directly, or mount a directory and create the configuration in the UI:

mkdir agentgateway-config
docker run \
  --user "$(id -u):$(id -g)" \
  -v ./agentgateway-config:/config \
  -p 3000:3000 -p 4000:4000 -p 127.0.0.1:15000:15000 \
  cr.agentgateway.dev/agentgateway:v1.3.0

When run in this mode, a configuration file will automatically be created, setting up logging and exposing the admin UI. The user is customized to run as the current user to ensure the container can read and write the configuration.

If you want to provide an explicit file, you can also do so. By default, the agentgateway admin UI listens on localhost, which is not exposed outside of the container; the ADMIN_ADDR is set below to expose it and is optional.

docker run \
  --user "$(id -u):$(id -g)" \
  -v ./config.yaml:/config.yaml \
  -p 3000:3000 -p 4000:4000 -p 127.0.0.1:15000:15000 \
  -e ADMIN_ADDR=0.0.0.0:15000 \
  cr.agentgateway.dev/agentgateway:v1.3.0 \
  -f /config.yaml

Open http://localhost:15000/ui to get started!

Docker Compose

To run agentgateway in Docker Compose, follow the same approach as above. Create a directory for the configuration and start the service.

mkdir agentgateway-config
docker compose up
services:
  agentgateway:
    container_name: agentgateway
    restart: unless-stopped
    image: cr.agentgateway.dev/agentgateway:v1.3.0
    # Replace with your user and group IDs, such as the output of: id -u && id -g
    user: "1000:1000"
    ports:
      - "3000:3000"
      - "4000:4000"
      - "127.0.0.1:15000:15000"
    volumes:
      - ./agentgateway-config:/config

Open http://localhost:15000/ui to get started!

Was this page helpful?
Agentgateway assistant

Ask me anything about agentgateway configuration, features, or usage.

Note: AI-generated content might contain errors; please verify and test all returned information.

Tip: one topic per conversation gives the best results. Use the + button in the chat header to start a new conversation.

Switching topics? Starting a new conversation improves accuracy.
↑↓ navigate select esc dismiss

What could be improved?

Your feedback helps us improve assistant answers and identify docs gaps we should fix.

Need more help? Join us on Discord: https://discord.gg/y9efgEmppm

Want to use your own agent? Add the Solo MCP server to query our docs directly. Get started here: https://search.solo.io/.