Skip to main content
Deploy your agents using Docker containers.
The user builds a Docker image, runs the container, and reaches the agent through the exposed port.

Quick Start

1

Simple Usage

Define an agent that answers requests inside the container.
2

With Configuration

Add a Dockerfile that installs the SDK and exposes the serving port.

How It Works


Dockerfile

requirements.txt

main.py

Build and Run

Docker Compose

Run with Compose

Best Practices

Never bake API keys into the image. Set OPENAI_API_KEY at run time with -e OPENAI_API_KEY=$OPENAI_API_KEY so the same image runs across environments.
Use python:3.11-slim and a pinned praisonaiagents>=0.1.0 in requirements.txt for reproducible builds that survive upstream releases.
agent.launch(host="0.0.0.0", port=8000, path="/agent") makes the agent reachable from outside the container. Map it with -p 8000:8000.
When the agent needs a database, define both services in docker-compose.yml and connect via DATABASE_URL so persistence survives container restarts.

Deployment Overview

All deployment options

Deploy Module

Deploy API reference