Fly.io Deployment Guide
Deploy Ever Gauzy to Fly.io for global edge deployment.
Prerequisitesβ
flyctlCLI installed- Fly.io account
Quick Startβ
1. Launch Appβ
fly launch --name gauzy-api --image ghcr.io/ever-co/gauzy-api:latest
2. Create PostgreSQLβ
fly postgres create --name gauzy-db
fly postgres attach gauzy-db --app gauzy-api
3. Create Redisβ
fly redis create --name gauzy-redis
4. Set Secretsβ
fly secrets set \
JWT_SECRET=$(openssl rand -base64 32) \
JWT_REFRESH_SECRET=$(openssl rand -base64 32) \
API_BASE_URL=https://gauzy-api.fly.dev \
CLIENT_BASE_URL=https://gauzy-webapp.fly.dev
5. Deployβ
fly deploy
fly.tomlβ
[build]
image = "ghcr.io/ever-co/gauzy-api:latest"
[env]
NODE_ENV = "production"
DB_TYPE = "postgres"
PORT = "3000"
[[services]]
internal_port = 3000
protocol = "tcp"
[[services.ports]]
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.http_checks]]
interval = 10000
grace_period = "5s"
method = "get"
path = "/api/health"
Related Pagesβ
- Production Deployment β general guide
- Railway Deployment β Railway alternative