Agent Factory Deploy
Docker deployment for Agent Factory (agent-factory + agent-factory-ui).
Quick Start
- Copy environment file:
cp .env.example .env
-
Edit
.envwith your configuration (at minimum setADMIN_EMAILandADMIN_PASSWORD) -
Run with local MongoDB:
docker-compose --profile with-db up --build
Or with external MongoDB (set MONGODB_URI in .env):
docker-compose up --build
- Access:
Deploy Specific Version
API_VERSION=<branch/tag> UI_VERSION=<branch/tag> docker-compose up --build
Update After Branch Changes
docker-compose --profile with-db build --no-cache && docker-compose --profile with-db upConfiguration
| Variable | Description | Default |
|---|---|---|
API_VERSION |
API branch/tag to deploy | master |
UI_VERSION |
UI branch/tag to deploy | master |
API_PORT |
API exposed port | 3000 |
UI_PORT |
UI exposed port | 8080 |
MONGO_PORT |
MongoDB exposed port | 27017 |
MONGO_USER |
MongoDB root username | - |
MONGO_PASSWORD |
MongoDB root password | - |
JWT_SECRET |
JWT signing secret | - |
ENCRYPTION_KEY |
Encryption key (32 bytes) | - |
MONGODB_URI |
MongoDB connection string | mongodb://mongo:27017/agent-factory |
VITE_API_URL |
API URL for UI | http://localhost:3000 |
Production Deployment
For production, ensure you:
- Set strong
JWT_SECRET,ENCRYPTION_KEY,ADMIN_PASSWORD - Configure MongoDB with authentication (e.g.,
mongodb://user:password@host:27017/agent-factory) - Set
VITE_API_URLto your production API URL - Consider using a reverse proxy (nginx/traefik) for SSL