Integration guide for deploying the PowerSync Service on Coolify
Step 1: Create Docker Compose Empty resource
Compose file
as a Docker Compose Empty resource to your project.Step 2: Update environment variables and config files
Step 3: Deploy the PowerSync Service
Deploy
button to deploy the PowerSync Service.http://localhost:8080
if default config was used, orhttp://{your_coolify_domain}:{PS_PORT}
if a custom domain or port was specified.sync_rules.yaml
file (according to your data requirements)powersync.yaml
fileSupabase
Environment Variable | Value |
---|---|
PS_DATABASE_TYPE | postgresql |
PS_DATABASE_URI | Connection string obtained from Supabase See step 5 in Connect PowerSync to Your Supabase |
PS_PORT | Keep default value (8080) |
PS_MONGO_URI | mongodb://mongo:27017 |
PS_JWKS_URL | Keep default value |
Custom
Environment Variable | Value |
---|---|
PS_DATABASE_TYPE | postgresql OR mongodb OR mysql |
PS_DATABASE_URI | The database connection URI (according to your database type) where your data is stored. |
PS_PORT | Default value (8080) You can change this if you want the PowerSync Service to be available on a different port. |
PS_MONGO_URI | mongodb://mongo:27017 |
PS_JWKS_URL | The URL of the JWKS endpoint of your authentication service. |
Compose
fileCompose file