{"id":23705688,"url":"https://github.com/ccakes/nomad-pgsql-patroni","last_synced_at":"2026-02-15T01:31:11.249Z","repository":{"id":44897775,"uuid":"165623408","full_name":"ccakes/nomad-pgsql-patroni","owner":"ccakes","description":"Simple container for running Postgres HA on Nomad","archived":false,"fork":false,"pushed_at":"2024-02-17T08:57:55.000Z","size":42,"stargazers_count":72,"open_issues_count":3,"forks_count":14,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-03T11:39:18.997Z","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ccakes.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-01-14T08:25:41.000Z","updated_at":"2025-08-10T16:21:37.000Z","dependencies_parsed_at":"2024-01-12T15:19:57.878Z","dependency_job_id":"b4213466-bd4b-4690-ac6d-d492c52e7b2a","html_url":"https://github.com/ccakes/nomad-pgsql-patroni","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/ccakes/nomad-pgsql-patroni","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccakes%2Fnomad-pgsql-patroni","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccakes%2Fnomad-pgsql-patroni/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccakes%2Fnomad-pgsql-patroni/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccakes%2Fnomad-pgsql-patroni/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccakes","download_url":"https://codeload.github.com/ccakes/nomad-pgsql-patroni/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccakes%2Fnomad-pgsql-patroni/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29463981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T01:01:38.065Z","status":"ssl_error","status_checked_at":"2026-02-15T01:01:23.809Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-12-30T14:56:36.957Z","updated_at":"2026-02-15T01:31:11.232Z","avatar_url":"https://github.com/ccakes.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nomad-pgsql-patroni\n\nA simple container running Postgres and Patroni useful for dropping directly into a Hashicorp environment (Nomad + Consul + Vault)\n\nIt also comes pre-baked with some tools and extensions\n\n### Tools\n\n| Name | Version | Link |\n|--|--|--|\n| awscli | 1.22.64 | https://pypi.org/project/awscli/ |\n| WAL-G | 2.0.1 | https://github.com/wal-g/wal-g |\n| Patroni | 3.0.0 | https://github.com/zalando/patroni |\n| vaultenv | 0.15.1 | https://github.com/channable/vaultenv |\n\n### Extensions\n\n| Name | Version | Link |\n|--|--|--|\n| Timescale | 2.13.1 | https://www.timescale.com |\n| PostGIS | 3.4.1 | https://postgis.net |\n| pg_cron | 1.6 | https://github.com/citusdata/pg_cron |\n| pg_idkit | 0.2.1 | https://github.com/VADOSWARE/pg_idkit |\n| pgRouting | 3.6.1 | https://pgrouting.org |\n| postgres-json-schema | 0.1.1 | https://github.com/gavinwahl/postgres-json-schema |\n| vector | 0.5.1 | https://github.com/ankane/pgvector |\n\n### Still running an older Postgres version?\n\nThese branches are *mostly* supported containing older versions. If I get behind on a point release feel free to raise an issue :thumbsup:\n\n- [`pg-14`](https://github.com/ccakes/nomad-pgsql-patroni/tree/pg-14)\n- [`pg-13`](https://github.com/ccakes/nomad-pgsql-patroni/tree/pg-13)\n- [`pg-12`](https://github.com/ccakes/nomad-pgsql-patroni/tree/pg-12)\n\n## Usage\n\n```hcl\njob \"postgres-16\" {\n  type = \"service\"\n  datacenters = [\"dc1\"]\n\n  group \"group\" {\n    count = 1\n\n    network {\n      port api { to = 8080 }\n      port pg { to = 5432 }\n    }\n\n    task \"db\" {\n      driver = \"docker\"\n\n      template {\n        data = \u003c\u003cEOL\nscope: postgres\nname: pg-{{env \"node.unique.name\"}}\nnamespace: /nomad\n\nrestapi:\n  listen: 0.0.0.0:{{env \"NOMAD_PORT_api\"}}\n  connect_address: {{env \"NOMAD_ADDR_api\"}}\n\nconsul:\n  host: localhost\n  register_service: true\n\n# bootstrap config\nEOL\n\n        destination = \"/secrets/patroni.yml\"\n      }\n\n      config {\n        image = \"ghcr.io/ccakes/nomad-pgsql-patroni:16.2-1.tsdb_gis\"\n\n        ports = [\"api\", \"pg\"]\n      }\n\n      resources {\n        memory = 1024\n      }\n    }\n  }\n}\n\n```\n\n## Testing\n\nAn example `docker-compose` file and patroni config is included to see this running.\n```shell\n$ docker-compose -f docker-compose.test.yml up\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccakes%2Fnomad-pgsql-patroni","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccakes%2Fnomad-pgsql-patroni","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccakes%2Fnomad-pgsql-patroni/lists"}