{"id":20199014,"url":"https://github.com/pgrouting/docker-pgrouting","last_synced_at":"2025-03-03T08:26:06.259Z","repository":{"id":41240136,"uuid":"151656317","full_name":"pgRouting/docker-pgrouting","owner":"pgRouting","description":"Docker for pgRouting","archived":false,"fork":false,"pushed_at":"2024-10-29T02:09:20.000Z","size":189,"stargazers_count":67,"open_issues_count":10,"forks_count":34,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-10-29T18:49:04.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hub.docker.com/repository/docker/pgrouting/pgrouting","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pgRouting.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},"funding":{"community_bridge":"pgrouting","open_collective":"pgrouting"}},"created_at":"2018-10-05T01:21:17.000Z","updated_at":"2024-10-29T02:09:25.000Z","dependencies_parsed_at":"2023-01-23T08:45:38.839Z","dependency_job_id":"67a9be0d-55c4-48e3-bb5a-b4064ece83d8","html_url":"https://github.com/pgRouting/docker-pgrouting","commit_stats":{"total_commits":119,"total_committers":9,"mean_commits":"13.222222222222221","dds":"0.38655462184873945","last_synced_commit":"521a20bc8b263c2a88bf06d5b71d8fd5f4453a85"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgRouting%2Fdocker-pgrouting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgRouting%2Fdocker-pgrouting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgRouting%2Fdocker-pgrouting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgRouting%2Fdocker-pgrouting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgRouting","download_url":"https://codeload.github.com/pgRouting/docker-pgrouting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241631673,"owners_count":19994066,"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-14T04:35:28.912Z","updated_at":"2025-03-03T08:26:06.252Z","avatar_url":"https://github.com/pgRouting.png","language":"Dockerfile","funding_links":["https://funding.communitybridge.org/projects/pgrouting","https://opencollective.com/pgrouting"],"categories":[],"sub_categories":[],"readme":"# docker-pgrouting\n\n![Docker automated](https://img.shields.io/docker/cloud/automated/pgrouting/pgrouting)\n![Docker status](https://img.shields.io/docker/cloud/build/pgrouting/pgrouting)\n![Docker builds](https://img.shields.io/docker/pulls/pgrouting/pgrouting)\n\n\npgRouting Docker images.\n\n**Note**: The outdated docker images folders for the unsupported pgRouting versions are removed, but they can be retrieved from the Git history, if needed by someone.\n\n## Contents\n- [Contents](#contents)\n- [Versions](#versions)\n- [Tag roles](#tag-roles)\n- [How to use](#how-to-use)\n- [How to build images](#how-to-build-images)\n- [Develop](#develop)\n- [License](#license)\n- [Links](#links)\n\n## Versions\n\nThere are several versions available:\n\n- With pgRouting v3:\n  - [3.7 with Postgres 17 + PostGIS 3.5](17-3.5-3.4/). Docker image: `pgrouting/pgrouting:17-3.5-3.7`\n  - [3.7 with Postgres 16 + PostGIS 3.5](16-3.5-3.4/). Docker image: `pgrouting/pgrouting:16-3.5-3.7`\n  - [3.7 with Postgres 15 + PostGIS 3.5](15-3.5-3.7/). Docker image: `pgrouting/pgrouting:15-3.5-3.7`\n  - [3.7 with Postgres 14 + PostGIS 3.5](14-3.5-3.4/). Docker image: `pgrouting/pgrouting:14-3.5-3.7`\n  - [3.7 with Postgres 13 + PostGIS 3.5](13-3.5-3.4/). Docker image: `pgrouting/pgrouting:13-3.5-3.7`\n  - [3.6 with Postgres 17 + PostGIS 3.5](17-3.5-3.3/). Docker image: `pgrouting/pgrouting:17-3.5-3.6`\n  - [3.6 with Postgres 16 + PostGIS 3.5](16-3.5-3.3/). Docker image: `pgrouting/pgrouting:16-3.5-3.6`\n  - [3.6 with Postgres 15 + PostGIS 3.5](15-3.5-3.3/). Docker image: `pgrouting/pgrouting:15-3.5-3.6`\n  - [3.6 with Postgres 14 + PostGIS 3.5](14-3.5-3.3/). Docker image: `pgrouting/pgrouting:14-3.5-3.6`\n  - [3.6 with Postgres 13 + PostGIS 3.5](13-3.5-3.3/). Docker image: `pgrouting/pgrouting:13-3.5-3.6`\n- With pgRouting main branch (*):\n  - [main branch with Postgres 17 + PostGIS 3.5](17-3.5-main/). Docker image: `pgrouting/pgrouting:17-3.5-main`\n  - [main branch with Postgres 16 + PostGIS 3.5](16-3.5-main/). Docker image: `pgrouting/pgrouting:16-3.5-main`\n  - [main branch with Postgres 15 + PostGIS 3.5](15-3.5-main/). Docker image: `pgrouting/pgrouting:15-3.5-main`\n  - [main branch with Postgres 14 + PostGIS 3.5](14-3.5-main/). Docker image: `pgrouting/pgrouting:14-3.5-main`\n  - [main branch with Postgres 13 + PostGIS 3.5](13-3.5-main/). Docker image: `pgrouting/pgrouting:13-3.5-main`\n- With pgRouting develop branch (*):\n  - [develop branch with Postgres 17 + PostGIS 3.5](17-3.5-develop/). Docker image: `pgrouting/pgrouting:17-3.5-develop`\n  - [develop branch with Postgres 16 + PostGIS 3.5](16-3.5-develop/). Docker image: `pgrouting/pgrouting:16-3.5-develop`\n  - [develop branch with Postgres 15 + PostGIS 3.5](15-3.5-develop/). Docker image: `pgrouting/pgrouting:15-3.5-develop`\n  - [develop branch with Postgres 14 + PostGIS 3.5](14-3.5-develop/). Docker image: `pgrouting/pgrouting:14-3.5-develop`\n  - [develop branch with Postgres 13 + PostGIS 3.5](13-3.5-develop/). Docker image: `pgrouting/pgrouting:13-3.5-develop`\n\n(*) If you want to use the last versions of develop or main branches you should consider to build the image by your own. See [here](#how-to-build-images) how to build images:\n\n## Tag roles\n\n`{PostgreSQL major}-{PostGIS major/minor}-{pgRouting version}`\n\nTag for pgRouting 3.7.3 with PostgreSQL 17 and PostGIS 3.5:\n\n`pgrouting/pgrouting:17-3.5-3.7.3`\n\n## How to use\n\n### Running pgRouting with Docker compose\n\nRun postgres database:\n```sh\n$ cd 17-3.5-3.7\n$ docker compose up\n```\n\n### Running pgRouting without Docker compose\n\nRun postgres database:\n```sh\n$ cd 17-3.5-3.7\n$ docker run --name pgrouting -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d pgrouting/pgrouting:$(cat version.txt)\n```\n\n## How to build images\n\nBuilding images:\n```sh\n$ cd 17-3.5-3.7\n$ docker build -t pgrouting/pgrouting:$(cat version.txt) .\n```\n\n### Using psql with Docker compose:\n\n```sh\n$ docker compose exec pgrouting psql -U postgres\n```\n\nExample:\n\n```\npsql (17.2 (Debian 17.2-1.pgdg110+1))\nType \"help\" for help.\n\npostgres=# create database test;\nCREATE DATABASE\npostgres=# \\c test\nYou are now connected to database \"test\" as user \"postgres\".\ntest=# create extension postgis;\nCREATE EXTENSION\ntest=# create extension pgrouting;\nCREATE EXTENSION\ntest=# select version();\n                                                           version                                                           \n-----------------------------------------------------------------------------------------------------------------------------\n PostgreSQL 17.2 (Debian 17.2-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit\n(1 row)\n\ntest=# select pgr_version();\n pgr_version \n-------------\n 3.7.3\n(1 row)\n\ntest=# select postgis_full_version();\n                                  postgis_full_version                                                                                                                                                                    \n-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n POSTGIS=\"3.5.2 dea6d0a\" [EXTENSION] PGSQL=\"170\" GEOS=\"3.9.0-CAPI-1.16.2\" PROJ=\"7.2.1 NETWORK_ENABLED=OFF URL_ENDPOINT=https://cdn.proj.org USER_WRITABLE_DIRECTORY=/var/lib/postgresql/.local/share/proj DATABASE_PATH=/usr/share/proj/proj.db\" (compiled against PROJ 7.2.1) LIBXML=\"2.9.10\" LIBJSON=\"0.15\" LIBPROTOBUF=\"1.3.3\" WAGYU=\"0.5.0 (Internal)\"\n(1 row)\n\ntest=# \n```\n\n## Develop\n\nTo make new version for example `x.x`, run following:\n\n```\nmkdir 17-3.5-x.x\ntouch 17-3.5-x.x/Dockerfile\ntouch 17-3.5-x.x/version.txt\nmake update\n```\n\n`make update` run `update.sh`, that finds new Dockerfile and generates Dockerfile, docker-compose.yml, README.md, and extra/Dockerfile from template.\n\n## License\n\nThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\n\n## Links\n\n- pgRouting Docker hub: https://hub.docker.com/r/pgrouting/pgrouting/\n- pgRouting project: https://pgrouting.org/\n- pgRouting github: https://github.com/pgRouting\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgrouting%2Fdocker-pgrouting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgrouting%2Fdocker-pgrouting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgrouting%2Fdocker-pgrouting/lists"}