{"id":20697945,"url":"https://github.com/fly-apps/postgres-flex","last_synced_at":"2025-10-08T15:29:39.491Z","repository":{"id":65553027,"uuid":"575971133","full_name":"fly-apps/postgres-flex","owner":"fly-apps","description":"Postgres HA setup using repmgr","archived":false,"fork":false,"pushed_at":"2025-02-24T16:30:08.000Z","size":5075,"stargazers_count":126,"open_issues_count":41,"forks_count":66,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-08T04:09:47.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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":"2022-12-08T17:58:35.000Z","updated_at":"2025-04-07T14:12:15.000Z","dependencies_parsed_at":"2023-11-07T13:30:54.505Z","dependency_job_id":"14e67476-83e8-425e-9b5c-e938985559dc","html_url":"https://github.com/fly-apps/postgres-flex","commit_stats":null,"previous_names":[],"tags_count":66,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Fpostgres-flex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Fpostgres-flex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Fpostgres-flex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Fpostgres-flex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fly-apps","download_url":"https://codeload.github.com/fly-apps/postgres-flex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254394722,"owners_count":22063984,"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:20:50.060Z","updated_at":"2025-10-08T15:29:34.454Z","avatar_url":"https://github.com/fly-apps.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GitHub release (latest by date)](https://img.shields.io/github/v/release/fly-apps/postgres-flex)\n[![DeepSource](https://deepsource.io/gh/fly-apps/postgres-flex.svg/?label=active+issues\u0026token=VOdkBvMAf90cLzNVB3k0WpJC)](https://deepsource.io/gh/fly-apps/postgres-flex/?ref=repository-badge)\n\n# High Availability Postgres on Fly.io\nThis repo contains all the code and configuration necessary to run a [highly available Postgres cluster](https://fly.io/docs/postgres/) in a Fly.io organization's private network. This source is packaged into [Docker images](https://hub.docker.com/r/flyio/postgres-flex/tags) which allow you to track and upgrade versions cleanly as new features are added.\n\n\n## Getting started\n```bash\n# Be sure you're running the latest version of flyctl.\nfly version update\n\n# Provision a 3 member cluster\nfly pg create --name \u003capp-name\u003e --initial-cluster-size 3 --region ord\n```\n\n## High Availability\nFor HA, it's recommended that you run at least 3 members within your primary region. Automatic failovers will only consider members residing within your primary region. The primary region is represented as an environment variable defined within the `fly.toml` file.\n\n## Horizontal scaling\nUse the clone command to scale up your cluster.\n```\n# List your active Machines\nfly machines list --app \u003capp-name\u003e\n\n# Clone a machine into a target region\nfly machines clone \u003cmachine-id\u003e --region \u003ctarget-region\u003e\n```\n\n## Staying up-to-date!\nThis project is in active development so it's important to stay current with the latest changes and bug fixes.\n\n```\n# Use the following command to verify you're on the latest version.\nfly image show --app \u003capp-name\u003e\n\n# Update your Machines to the latest version.\nfly image update --app \u003capp-name\u003e\n\n```\n\n## TimescaleDB support\nWe currently maintain a separate TimescaleDB-enabled image that you can specify at provision time.\n\n```\nfly pg create  --image-ref flyio/postgres-flex-timescaledb:15\n```\n\n## Having trouble?\nCreate an issue or ask a question here: https://community.fly.io/\n\n## Contributing\nIf you're looking to get involved, fork the project and send pull requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-apps%2Fpostgres-flex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffly-apps%2Fpostgres-flex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-apps%2Fpostgres-flex/lists"}