{"id":14973910,"url":"https://github.com/alitiq/citus-postgis","last_synced_at":"2026-03-02T12:47:18.933Z","repository":{"id":240047524,"uuid":"359346466","full_name":"alitiq/citus-postgis","owner":"alitiq","description":"This is postgresql database image with citus and postgis extension.","archived":false,"fork":false,"pushed_at":"2021-04-19T06:41:48.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T08:24:32.607Z","etag":null,"topics":["citus","database","postgis","postgresql","psql"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/alitiq.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":"2021-04-19T06:03:05.000Z","updated_at":"2022-12-21T12:11:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"28984d98-bd9b-4feb-97f8-8febb160fcba","html_url":"https://github.com/alitiq/citus-postgis","commit_stats":{"total_commits":2,"total_committers":2,"mean_commits":1.0,"dds":0.5,"last_synced_commit":"ae9d2e902cf185179aaa091223a6b83fbd98f902"},"previous_names":["alitiq/citus-postgis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alitiq/citus-postgis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alitiq%2Fcitus-postgis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alitiq%2Fcitus-postgis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alitiq%2Fcitus-postgis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alitiq%2Fcitus-postgis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alitiq","download_url":"https://codeload.github.com/alitiq/citus-postgis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alitiq%2Fcitus-postgis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30003364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T12:19:43.414Z","status":"ssl_error","status_checked_at":"2026-03-02T12:19:02.215Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["citus","database","postgis","postgresql","psql"],"created_at":"2024-09-24T13:49:40.213Z","updated_at":"2026-03-02T12:47:18.911Z","avatar_url":"https://github.com/alitiq.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# citus-postgis\nCitus-postgis is a PostgreSQL-based distributed RDBMS based on this [repository](https://github.com/citusdata/docker). For more information, see the [Citus data](https://www.citusdata.com/) and the [PostGIS](https://postgis.net/) webites. \n.\n\n## Load pre-built Docker image\nWe provide a pre built docker image in this repository.\n\n1. Login to github's docker.pkg:\n\n```bash\ndocker login docker.pkg.github.com -u  \"username\" -p  \"token\"\n```\nNote: You need a github developer token.\n2. Pull image:\n```bash \ndocker pull docker.pkg.github.com/meteointelligence/citus-postgis/citus-postgis\n```\n3. [Optional] Tag image:\n```bash \ndocker tag docker.pkg.github.com/meteointelligence/citus-postgis/citus-postgis citus-postgis \n```\n\n## Build\nIf you do not want to use github pre-built docker image you can build image from this project:\nGo into the project directory and run: \n```bash\ndocker build -t \"citus-postgis\" .\n````\n\n## Usage\nWe recommend the following usage: \n\n#### Default settings:\n```bash\ndocker run --name citus_standalone -p 5432:5432 citusdata/citus\n```\n#### Specified User:\n```bash\ndocker run --rm --name pg-docker -e PGUSER=\u003cuser\u003e -e POSTGRES_PASSWORD=\u003cpwd\u003e -d -p 5432:5432 citusdata/citus:pg12 \n```\n\nYou should now be able to connect to `127.0.0.1` on port `5432` using e.g. `psql` to run a few commands (see the Citus documentation for more information).\nAs with the PostgreSQL image, the default `PGDATA` directory will be mounted as a volume, so it will persist between restarts of the container.\n\n\n## Enable postgis\nPostGIS is an extension you have to enable to each database you want to use it in.\n1. Create your database\n2. Log in to your database and activate PostGIS:\n```psql\nCREATE EXTENSION postgis; \n```\nFor more details, check out the PostGIS documentation.\n### Docker Compose\n\nThe included `docker-compose.yml` file provides an easy way to get started with a Citus cluster, complete with multiple workers. Just copy it to your current directory and run:\n\n```bash\ndocker-compose -p citus up\n\n# Creating network \"citus_default\" with the default driver\n# Creating citus_worker_1\n# Creating citus_master\n# Creating citus_config\n# Attaching to citus_worker_1, citus_master, citus_config\n# worker_1    | The files belonging to this database system will be owned by user \"postgres\".\n# worker_1    | This user must also own the server process.\n# ...\n```\n\nThat’s it! As with the standalone mode, you’ll want to find your `docker-machine ip` if you’re using that technology, otherwise, just connect locally to `5432`. By default, you’ll only have one worker:\n\n```sql\nSELECT master_get_active_worker_nodes();\n\n--  master_get_active_worker_nodes\n-- --------------------------------\n--  (citus_worker_1,5432)\n-- (1 row)\n```\n\nBut you can add more workers at will using `docker-compose scale` in another tab. For instance, to bring your worker count to five…\n\n```bash\ndocker-compose -p citus scale worker=5\n\n# Creating and starting 2 ... done\n# Creating and starting 3 ... done\n# Creating and starting 4 ... done\n# Creating and starting 5 ... done\n```\n\n```sql\nSELECT master_get_active_worker_nodes();\n\n--  master_get_active_worker_nodes\n-- --------------------------------\n--  (citus_worker_5,5432)\n--  (citus_worker_1,5432)\n--  (citus_worker_3,5432)\n--  (citus_worker_2,5432)\n--  (citus_worker_4,5432)\n-- (5 rows)\n```\n\nIf you inspect the configuration file, you’ll find that there is a container that is neither a master nor worker node: `citus_config`. It simply listens for new containers tagged with the worker role, then adds them to the config file in a volume shared with the master node. If new nodes have appeared, it calls `master_initialize_node_metadata` against the master to repopulate the node table. See Citus’ [`workerlist-gen`][workerlist-gen] repo for more details.\n\nYou can stop your cluster with `docker-compose -p citus down`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falitiq%2Fcitus-postgis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falitiq%2Fcitus-postgis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falitiq%2Fcitus-postgis/lists"}