This configuration provides a straightforward method for deploying Temporal with SQLite persistence on fly.io. Additionally, Litestream is incorporated to enable streaming replication.
- Clone this repo
- Create .envrc file in the root folder with these environment variables
REPLICA_URL=s3:https://your-bucket-name/temporal_data
AWS_ACCESS_KEY_ID=your-aws-access-key-id
AWS_SECRET_ACCESS_KEY=your-aws-secret-access-key
SKIP_DEFAULT_NAMESPACE_CREATION=false
SKIP_ADD_CUSTOM_SEARCH_ATTRIBUTES=false
- Import env to fly
cat .envrc | fly secrets import
- Run
fly launch --no-deploy
- Run
fly deploy --ha=false
- You can forward the Temporal frontend port to your local machine using fly proxy
fly proxy 7233
- That's it