{"id":20698156,"url":"https://github.com/fly-apps/rqlite","last_synced_at":"2025-09-27T08:31:20.700Z","repository":{"id":104277860,"uuid":"318824784","full_name":"fly-apps/rqlite","owner":"fly-apps","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-25T17:16:36.000Z","size":4,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-11-17T00:26:55.726Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fly-apps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-05T15:41:02.000Z","updated_at":"2023-10-22T14:15:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"392a22c6-4fdb-4116-adac-c4716e84f548","html_url":"https://github.com/fly-apps/rqlite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Frqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Frqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Frqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Frqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fly-apps","download_url":"https://codeload.github.com/fly-apps/rqlite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234415556,"owners_count":18829133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T00:23:06.711Z","updated_at":"2025-09-27T08:31:15.168Z","avatar_url":"https://github.com/fly-apps.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example: private rqlite\n\n## Setup\n\n- Create a Fly app with:\n\n```toml\n[experimental]\nprivate_network = true\n\n[[mounts]]\nsource = \"data\"\ndestination = \"/data\"\n```\n\n- Create a volume:\n\n```\nflyctl volumes create data --region \u003cx region\u003e\n```\n\n- Deploy:\n\n```\nflyctl deploy\n```\n\n- Add 2 more volumes:\n\n```\nflyctl volumes create data --region \u003cy region\u003e\nflyctl volumes create data --region \u003cz region\u003e\n```\n\n- Scale:\n\n```\nflyctl scale count 3\n```\n\n## Usage\n\nUse a rqlite-compatible client to connect within your private network to `your-rqlite-app-name.internal:4001`.\n\n### Read-only, locally replicated, database\n\nIn a different app with private networking on also, you can inject the `rqlited` binary and start it in read-only mode:\n\n```\nexport PRIVATE_NET_IP=`getent hosts fly-local-6pn | cut -d ' ' -f1`\nrqlited \\\n    -join http://your-rqlite-app-name.internal:4001 \\\n    -http-addr \"0.0.0.0:4001\" -http-adv-addr \"[$PRIVATE_NET_IP]:4001\" \\\n    -raft-addr \"0.0.0.0:4002\" -raft-adv-addr \"[$PRIVATE_NET_IP]:4002\" \\\n    -raft-non-voter=true\n    -on-disk \\\n    /data/db\n```\n\nUse a standard sqlite database connector to connect to your disk database at `/data/db/db.sqlite`.\n\n**WARNING**: ^^ this is for a read-only database only! Do not write to this database.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-apps%2Frqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffly-apps%2Frqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-apps%2Frqlite/lists"}