docs icon indicating copy to clipboard operation
docs copied to clipboard

LiteFS folder mappings explained

Open gerhardcit opened this issue 3 months ago • 0 comments

On this page https://fly.io/docs/litefs/speedrun/

could to explain the relationship between fly.toml

[mounts]
  source = "litefs"
  destination = "/var/lib/litefs"

and litefs.yml

fuse:
  dir: "/litefs"

data:
  dir: "/var/lib/litefs"

and the Docker file (created by https://github.com/fly-apps/node-demo)

# Setup sqlite3 on a separate volume
RUN mkdir -p /data
VOLUME /data

ENV DATABASE_URL="file:///data/my.db"
ENTRYPOINT litefs mount

How should those be aligned?

gerhardcit avatar Mar 14 '24 06:03 gerhardcit