For environments where the database uses a private or self-signed CA certificate (e.g., on-prem databases, private cloud).
- PostgreSQL: External database with custom CA certificate for SSL
- Redis: External
- Proxy: Traefik with automatic HTTPS via Let's Encrypt
cp -r examples/postgres-private-ca ./my-deployment
cd my-deployment
# Edit docker.env — set NC_LICENSE_KEY and NC_REDIS_URL
# Edit docker-compose.yml:
# - Replace nocodb.example.com with your domain
# - Replace admin@example.com with your email
# Edit nocodb/db.json:
# - Set your database host, credentials, and port
# - Replace the ca value with your CA certificate content
# (newlines replaced with \n, all on one line)
docker compose up -dThe CA certificate must be embedded as a single-line string in db.json with \n for newlines. You can convert it with:
awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' your-ca.pemThen paste the output as the ca value in db.json.