Quick Start
How It Works
Dockerfile
requirements.txt
main.py
Build and Run
Docker Compose
Run with Compose
Best Practices
Pass secrets as environment variables
Pass secrets as environment variables
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.Pin the base image and SDK version
Pin the base image and SDK version
Use
python:3.11-slim and a pinned praisonaiagents>=0.1.0 in requirements.txt for reproducible builds that survive upstream releases.Expose one port and bind to 0.0.0.0
Expose one port and bind to 0.0.0.0
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.Use Compose for stateful stacks
Use Compose for stateful stacks
When the agent needs a database, define both services in
docker-compose.yml and connect via DATABASE_URL so persistence survives container restarts.Related
Deployment Overview
All deployment options
Deploy Module
Deploy API reference

