BaaS & Databases3 GB RAM (Pro or Scale)· Port 80

Deploy Appwrite Backend Server with Docker Compose

End-to-end backend server for web, mobile, and Flutter devs with Auth, Databases, Storage & Functions.

1. Production docker-compose.yml Configuration

Copy this stack definition or deploy directly from your Vexlo Cloud console with automatic Let's Encrypt TLS and persistent volume mounts.

docker-compose.yml
yaml
services:
  appwrite:
    image: appwrite/appwrite:1.6
    restart: unless-stopped
    ports:
      - "80:80"
    environment:
      - _APP_ENV=${_APP_ENV:-production}
      - _APP_OPENSSL_KEY_V1=${_APP_OPENSSL_KEY_V1:-your-secret-encryption-key}
      - _APP_DOMAIN=${_APP_DOMAIN:-appwrite.yourdomain.com}
    volumes:
      - app_data:/storage/uploads
    depends_on:
      - redis

  redis:
    image: redis:7-alpine
    restart: unless-stopped
    command: redis-server --maxmemory 256mb --maxmemory-policy allkeys-lru
    volumes:
      - redis_data:/data

volumes:
  app_data:
  redis_data:

2. Required Environment Variables

VariableDefault / ExampleDescription
_APP_ENVproductionRuntime environment mode for Appwrite workers.
_APP_OPENSSL_KEY_V1your-secret-encryption-keyMaster encryption key for project secrets and storage.
_APP_DOMAINappwrite.yourdomain.comPrimary custom domain routed to Appwrite.

Appwrite Backend Server Self-Hosting FAQs

How much RAM is required to self-host Appwrite Backend Server in production?

Appwrite Backend Server requires a minimum of 3 GB RAM (Pro or Scale). On Vexlo Cloud Pro (₹149/mo via UPI in India or $5/mo globally), you get 2 vCPU, 3 GB RAM, and 2 managed databases—more than enough headroom for production workloads.

How do I expose Appwrite Backend Server with automatic HTTPS/SSL on Vexlo Cloud?

Deploy the appwrite/appwrite:1.6 container on Vexlo Cloud, set the exposed port to 80, and attach your custom domain in the Domains tab. Vexlo automatically provisions and renews Let's Encrypt TLS certificates.

How is persistent data backed up for Appwrite Backend Server?

Mount /storage/uploads to a persistent Docker volume and connect Vexlo Cloud's automated S3 / Cloudflare R2 backup scheduler to snapshot your database daily or weekly.

More 1-Click Docker Templates

View all 25 templates →