### Run LiteFS Example App with Docker Compose Source: https://github.com/superfly/litefs-example/blob/main/docker-config/README.md This command initiates the LiteFS example application and its associated services (primary, replica, nginx) using Docker Compose. Ensure Docker is installed and the command is executed from the root directory of the repository. ```bash docker-compose up ``` -------------------------------- ### Deploy LiteFS Application Source: https://github.com/superfly/litefs-example/blob/main/fly-io-config/README.md Deploys the LiteFS application to Fly.io. This command builds and launches the application, making it accessible via a public URL. ```shell fly deploy ``` -------------------------------- ### Launch LiteFS App on Fly.io Source: https://github.com/superfly/litefs-example/blob/main/fly-io-config/README.md Creates a new application on Fly.io, setting the primary region to 'ord' (Chicago) but without deploying the application immediately. This generates a `fly.toml` configuration file. ```shell fly launch --region ord --no-deploy ``` -------------------------------- ### Configure LiteFS Volume Mount Source: https://github.com/superfly/litefs-example/blob/main/fly-io-config/README.md Adds a mount configuration to the `fly.toml` file, mapping the 'litefs' volume to the '/var/lib/litefs' directory within the application's file system. This specifies where LiteFS data will be stored. ```toml [mounts] source = "litefs" destination = "/var/lib/litefs" ``` -------------------------------- ### Create Persistent Volume for LiteFS Source: https://github.com/superfly/litefs-example/blob/main/fly-io-config/README.md Creates a persistent volume named 'litefs' with a size of 1GB in the 'ord' region. This volume will be used to store LiteFS data, ensuring data persistence across restarts. ```shell fly volumes create -r ord --size 1 litefs ``` -------------------------------- ### Clone LiteFS App Instances Source: https://github.com/superfly/litefs-example/blob/main/fly-io-config/README.md Clones existing application machines to new regions. The `--select` flag allows interactive selection of machines to clone. This is used to create redundant instances in the primary region and instances in other global regions for lower latency. ```shell # Make a second instance in your primary region. fly m clone --select --region ord # Make additional instances in regions around the world (London, Sydney, etc). fly m clone --select --region lhr fly m clone --select --region syd ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.