Cloud Deploy Mode
Set theDEPLOY environment variable to cloud to enable cloud deployment mode:
- Starts without requiring a valid configuration file
- Waits for configuration to be provided via mounted volumes or management API
- Begins serving requests once configuration is detected
Docker Deployment
Using Docker Compose
Using Docker Run
Configuration Detection
In cloud mode, the server checks for a valid configuration file at startup:- Configuration file exists and is not a directory
- Configuration file is not empty
- Configuration contains a valid
portsetting
Environment Variables
Core Variables
| Variable | Description | Default |
|---|---|---|
DEPLOY | Deployment mode (cloud or empty) | (none) |
Storage Backend Variables
See Storage Backends for remote storage configuration:- PostgreSQL:
PGSTORE_DSN,PGSTORE_SCHEMA,PGSTORE_LOCAL_PATH - Git:
GITSTORE_GIT_URL,GITSTORE_GIT_USERNAME,GITSTORE_GIT_TOKEN,GITSTORE_LOCAL_PATH - Object Storage:
OBJECTSTORE_ENDPOINT,OBJECTSTORE_BUCKET,OBJECTSTORE_ACCESS_KEY,OBJECTSTORE_SECRET_KEY,OBJECTSTORE_LOCAL_PATH
Kubernetes Deployment
ConfigMap Approach
Secret for Authentication
Store OAuth tokens in Kubernetes Secrets:Configuration with Storage Backends
For production cloud deployments, use remote storage backends:PostgreSQL Backend
docker-compose.yml
Git Backend
Object Storage Backend
Health Monitoring
Liveness Probe
Readiness Probe
Logging
Configure log output via configuration file:config.yaml
Scaling Considerations
Stateless Deployment
When using remote storage backends (PostgreSQL, Git, or Object Storage), the service becomes stateless and can be scaled horizontally:Local File Storage
With local file storage, use single-instance deployments or shared volumes:Troubleshooting
Service Won’t Start
Check logs for configuration issues:- Missing
DEPLOY=cloudvariable - Invalid configuration file format
- Missing required configuration fields (e.g.,
port)
Configuration Not Detected
Verify file is mounted correctly:Storage Backend Connection Failed
Check environment variables and network connectivity:Next Steps
Storage Backends
Configure PostgreSQL, Git, or Object Storage backends
Configuration
Learn about available configuration options