mast/mast-react/etc/litefs.yml
Anish Lakhwara f7b2d09c4b init react
2024-10-26 00:00:30 -07:00

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}"