Back to Home
Chitthi Docs
v1.0.0

Documentation

Deployment

Deploy your self-hosted Chitthi instance to production.

Cloud users: Deployment is handled for you. This section is for self-host users only.

Docker Deployment

bash
# Start all services
docker compose up --build

# Run in background
docker compose up -d --build

# View logs
docker compose logs -f

Production Image

bash
# Build production image
docker build -t chitthi-app .

# Run with environment variables
docker run -p 8080:8080 \
  -e DATABASE_URL="postgres://..." \
  -e REDIS_URL="redis://..." \
  -e JWT_SECRET="..." \
  -e ENCRYPTION_KEY="..." \
  chitthi-app

Production Checklist

Set APP_ENV=production
Configure production DATABASE_URL
Set strong JWT_SECRET & ENCRYPTION_KEY
Set up Redis for caching
Configure logging levels
Set up monitoring and alerting
Enable HTTPS/TLS via reverse proxy
Enable rate limiting

Production Tips

• Use environment variables for all sensitive config
• Enable connection pooling for database
• Use reverse proxy (nginx/Caddy) for TLS termination
• Pin Docker image tags instead of latest
• Back up the Postgres volume regularly