docker/compose-for-agents

Build and run AI agents using Docker Compose. A collection of ready-to-use examples for orchestrating open-source LLMs, tools, and agent runtimes.

TypeScript

1,054

480 commits

updated Sep 2, 2026

See the code

README

Compose for Agents Demos

Prerequisites

Demos

Each of these demos is self-contained and can be run either locally or using a cloud context. They are all configured using two steps.

  1. change directory to the root of the demo project
  2. create a .mcp.env file from the mcp.env.example file (if it exists, otherwise the demo doesn't need any secrets) and supply the required MCP tokens
  3. run docker compose up --build

Using OpenAI models

The demos support using OpenAI models instead of running models locally with Docker Model Runner. To use OpenAI:

  1. Create a secret.openai-api-key file with your OpenAI API key:

    sk-...
    
  2. Start the project with the OpenAI configuration:

    docker compose -f compose.yaml -f compose.openai.yaml up
    

Compose for Agents Demos - Classification

DemoAgent SystemModelsMCPsprojectcompose
A2A Multi-Agent Fact CheckerMulti-AgentOpenAIduckduckgo./a2acompose.yaml
Agno agent that summarizes GitHub issuesMulti-Agentqwen3(local)github-official./agnocompose.yaml
Vercel AI-SDK Chat-UI for mixing MCPs and ModelSingle Agentllama3.2(local), qwen3(local)wikipedia-mcp, brave, resend(email)./vercelcompose.yaml
CrewAI Marketing Strategy AgentMulti-Agentqwen3(local)duckduckgo./crew-aicompose.yaml
ADK Multi-Agent Fact CheckerMulti-Agentgemma3-qat(local)duckduckgo./adkcompose.yaml
ADK & Cerebras Golang ExpertsMulti-Agentunsloth/qwen3-gguf:4B-UD-Q4_K_XL & ai/qwen2.5:latest (DMR local), llama-4-scout-17b-16e-instruct (Cerebras remote)./adk-cerebrascompose.yml
LangGraph SQL AgentSingle Agentqwen3(local)postgres./langgraphcompose.yaml
Embabel Travel AgentMulti-Agentqwen3, Claude3.7, llama3.2, jimclark106/all-minilm:23M-F16brave, github-official, wikipedia-mcp, weather, google-maps, airbnb./embabelcompose.yaml and compose.dmr.yaml
Spring AI Brave SearchSingle Agentnoneduckduckgo./spring-aicompose.yaml
ADK Sock Store AgentMulti-Agentqwen3MongoDb, Brave, Curl,./adk-sock-shopcompose.yaml
Langchaingo DuckDuckGo SearchSingle Agentgemma3duckduckgo./langchaingocompose.yaml
MinionS Cost-Efficient Local-Remote CollaborationLocal-Remote Protocolqwen3(local), gpt-4o(remote)./minionsdocker-compose.minions.yml

License

This repository is dual-licensed under the Apache License 2.0 or the MIT License. You may choose either license to govern your use of the contributions made by Docker in this repository.

ℹ️ Note: Each example under may have its own LICENSE file. These are provided to reflect any third-party licensing requirements that apply to that specific example, and they must be respected accordingly.

SPDX-License-Identifier: Apache-2.0 OR MIT

agentic-workflows
ai-agents
docker
docker-compose
examples
large-language-models
llama-cpp
openai-gym
self-hosted

docker/compose-for-agents

Build and run AI agents using Docker Compose. A collection of ready-to-use examples for orchestrating open-source LLMs, tools, and agent runtimes.

TypeScript

1,054

480 commits

updated Sep 2, 2026

See the code

README

Compose for Agents Demos

Prerequisites

Demos

Each of these demos is self-contained and can be run either locally or using a cloud context. They are all configured using two steps.

  1. change directory to the root of the demo project
  2. create a .mcp.env file from the mcp.env.example file (if it exists, otherwise the demo doesn't need any secrets) and supply the required MCP tokens
  3. run docker compose up --build

Using OpenAI models

The demos support using OpenAI models instead of running models locally with Docker Model Runner. To use OpenAI:

  1. Create a secret.openai-api-key file with your OpenAI API key:

    sk-...
    
  2. Start the project with the OpenAI configuration:

    docker compose -f compose.yaml -f compose.openai.yaml up
    

Compose for Agents Demos - Classification

DemoAgent SystemModelsMCPsprojectcompose
A2A Multi-Agent Fact CheckerMulti-AgentOpenAIduckduckgo./a2acompose.yaml
Agno agent that summarizes GitHub issuesMulti-Agentqwen3(local)github-official./agnocompose.yaml
Vercel AI-SDK Chat-UI for mixing MCPs and ModelSingle Agentllama3.2(local), qwen3(local)wikipedia-mcp, brave, resend(email)./vercelcompose.yaml
CrewAI Marketing Strategy AgentMulti-Agentqwen3(local)duckduckgo./crew-aicompose.yaml
ADK Multi-Agent Fact CheckerMulti-Agentgemma3-qat(local)duckduckgo./adkcompose.yaml
ADK & Cerebras Golang ExpertsMulti-Agentunsloth/qwen3-gguf:4B-UD-Q4_K_XL & ai/qwen2.5:latest (DMR local), llama-4-scout-17b-16e-instruct (Cerebras remote)./adk-cerebrascompose.yml
LangGraph SQL AgentSingle Agentqwen3(local)postgres./langgraphcompose.yaml
Embabel Travel AgentMulti-Agentqwen3, Claude3.7, llama3.2, jimclark106/all-minilm:23M-F16brave, github-official, wikipedia-mcp, weather, google-maps, airbnb./embabelcompose.yaml and compose.dmr.yaml
Spring AI Brave SearchSingle Agentnoneduckduckgo./spring-aicompose.yaml
ADK Sock Store AgentMulti-Agentqwen3MongoDb, Brave, Curl,./adk-sock-shopcompose.yaml
Langchaingo DuckDuckGo SearchSingle Agentgemma3duckduckgo./langchaingocompose.yaml
MinionS Cost-Efficient Local-Remote CollaborationLocal-Remote Protocolqwen3(local), gpt-4o(remote)./minionsdocker-compose.minions.yml

License

This repository is dual-licensed under the Apache License 2.0 or the MIT License. You may choose either license to govern your use of the contributions made by Docker in this repository.

ℹ️ Note: Each example under may have its own LICENSE file. These are provided to reflect any third-party licensing requirements that apply to that specific example, and they must be respected accordingly.

SPDX-License-Identifier: Apache-2.0 OR MIT

agentic-workflows
ai-agents
docker
docker-compose
examples
large-language-models
llama-cpp
openai-gym
self-hosted

Significant stargazers

Batuhan Apaydın

958 followers · starred Sep 2025

David Scott

290 followers · starred Jul 2025

Marius Rackwitz

426 followers · starred Mar 2026

Nick Sieger

333 followers · starred Jul 2025