{"id":13410181,"url":"https://github.com/bscott/pocketbase-litestream","last_synced_at":"2026-01-25T02:19:25.512Z","repository":{"id":44356006,"uuid":"512225145","full_name":"bscott/pocketbase-litestream","owner":"bscott","description":"Pocketbase with Lightstream","archived":false,"fork":false,"pushed_at":"2023-09-21T20:24:02.000Z","size":19,"stargazers_count":74,"open_issues_count":2,"forks_count":11,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-11T04:18:05.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bscott.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-07-09T15:51:26.000Z","updated_at":"2025-03-01T08:14:05.000Z","dependencies_parsed_at":"2024-07-30T23:09:01.561Z","dependency_job_id":null,"html_url":"https://github.com/bscott/pocketbase-litestream","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bscott%2Fpocketbase-litestream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bscott%2Fpocketbase-litestream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bscott%2Fpocketbase-litestream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bscott%2Fpocketbase-litestream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bscott","download_url":"https://codeload.github.com/bscott/pocketbase-litestream/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243600700,"owners_count":20317319,"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-07-30T20:01:05.389Z","updated_at":"2026-01-25T02:19:25.460Z","avatar_url":"https://github.com/bscott.png","language":"Dockerfile","funding_links":[],"categories":["SQLite tools"],"sub_categories":[],"readme":"## Prerequisites\n\nTo test this locally, you'll need to have an S3-compatible store to connect to. Please see the Litestream Guides to get set up on your preferred object store.\n\nYou'll also need to update the replica URL in etc/litestream.yml in this repository to your appropriate object store.\n\nYou'll also need to set your object store credentials in your shell environment:\n\n```\nexport LITESTREAM_ACCESS_KEY_ID=XXX\nexport LITESTREAM_SECRET_ACCESS_KEY=XXX\nexport REPLICA_URL=s3://YOURBUCKETNAME/db\n```\n\nBuilding \u0026 running the container\n\nYou can build the application with the following command, if you are using this image as your base image:\n\ndocker build -t myapp .\n\nOnce the image is built, you can run it with the following command. Be sure to change the REPLICA_URL variable to point to your bucket.\n\n```\ndocker run \\\n  -p 8090:8090 \\\n  -v ${PWD}:/pb_data \\\n  -e REPLICA_URL=s3://YOURBUCKETNAME/db \\\n  -e LITESTREAM_ACCESS_KEY_ID \\\n  -e LITESTREAM_SECRET_ACCESS_KEY \\\n  bscott/pocketbase-litestream:{TAG}\n```\n\nLet's break down the options one-by-one:\n\n    -p 8090:8090 maps the container's port 8090 to the host machine's port 8090 so you can access the application's web server for Pocketbase at `/_/` path.\n\n    -v ${PWD}:/pb_data —mounts a volume from your current directory on the host to the /pb_data directory inside the container.\n\n    -e REPLICA_URL=...—sets an environment variable for your replica. This is used by the startup script to restore the database from a replica if it doesn't exist and it is used in the Litestream configuration file. If using AWS S3, make sure your IAM keys have access to retrieve the Bucket's Location, or set the REPLICA URL to include the AWS Bucket's region. \n\n    -e LITESTREAM_ACCESS_KEY_ID \u0026 -e LITESTREAM_SECRET_ACCESS_KEY—passes through your current environment variables for your S3 credentials to the container. You can also use AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY instead.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbscott%2Fpocketbase-litestream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbscott%2Fpocketbase-litestream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbscott%2Fpocketbase-litestream/lists"}