Skip to content

d3chat Deployment

Source of truth: d3chat/docs/deployment.md

Terminal window
git clone https://github.com/your-org/d3chat.git
cd d3chat
cp .env.example .env
# Edit .env with your settings
docker compose up -d

Key environment variables

  • DATABASE_URL
  • REDIS_URL
  • SECRET_KEY
  • SERVER_DOMAIN
  • CORS_ORIGINS
  • VITE_API_URL
  • VITE_WS_URL

Production checklist

  1. Set a strong SECRET_KEY.
  2. Set SERVER_DOMAIN to your public domain.
  3. Use HTTPS with a reverse proxy or tunnel.
  4. Configure CORS_ORIGINS correctly.
  5. Use managed or external PostgreSQL and Redis for reliability.
  6. Enable automated backups.

Development (No Docker)

Prerequisites:

  • Python 3.12+
  • Node.js 20+
  • PostgreSQL 16
  • Redis 7

Run backend and frontend separately after installing dependencies and applying migrations.