26 lines
744 B
YAML
26 lines
744 B
YAML
# This directory is where your application will access the database.
|
|
fuse:
|
|
dir: "/app/dbs"
|
|
|
|
# This directory is where LiteFS will store internal data.
|
|
# You must place this directory on a persistent volume.
|
|
data:
|
|
dir: "/var/lib/litefs"
|
|
|
|
exec:
|
|
- cmd: "pnpm run start"
|
|
|
|
# The lease section specifies how the cluster will be managed. We're using the
|
|
# "consul" lease type so that our application can dynamically change the primary.
|
|
#
|
|
# These environment variables will be available in your Fly.io application.
|
|
lease:
|
|
type: "consul"
|
|
advertise-url: "http://${HOSTNAME}.vm.${FLY_APP_NAME}.internal:20202"
|
|
candidate: ${FLY_REGION == PRIMARY_REGION}
|
|
promote: true
|
|
|
|
consul:
|
|
url: "${FLY_CONSUL_URL}"
|
|
key: "litefs/${FLY_APP_NAME}"
|