Production Deployment Guide
Guide for deploying MetaPilot to production platforms (Render, Docker, Linux Systemd).
1. Docker Compose Deployment
MetaPilot provides pre-built Docker Compose configurations under .
infrastructure/docker/Launch Production Stack
bash
cd infrastructure/docker/production
docker-compose up -d --build
Stack Components
- : Daphne ASGI application server (
api).port 8000 - : Background campaign & message worker node (
celery_worker).concurrency=4 - : Periodic cron scheduler daemon.
celery_beat - : Redis server for task queues & Channels layer (
redis).port 6379 - : PostgreSQL 16 relational database (
postgres).port 5432
️ 2. Render Deployment
MetaPilot includes a for one-click deployment on Render:
Procfiletext
web: daphne -b 0.0.0.0 -p $PORT core.asgi:application
worker: celery -A core worker -Q celery,scheduler,jobs --loglevel=info --concurrency=4
beat: celery -A core beat --scheduler django_celery_beat.schedulers:DatabaseScheduler --loglevel=info
Environment Variables Checklist on Render
- : Set to strong 64-character random string.
SECRET_KEY - : Set to
DEBUG.False - : Set to your Render hostname (e.g.
ALLOWED_HOSTS).api.metapilot.in - : Set to valid 32 url-safe base64-encoded key.
FERNET_KEY - : Linked PostgreSQL instance connection string.
DATABASE_URL - &
CELERY_BROKER_URL: Linked Managed Redis connection strings.CHANNEL_REDIS_URL