{"id":19581056,"url":"https://github.com/tsamaya/docker-compose-postgis","last_synced_at":"2026-03-19T10:35:58.046Z","repository":{"id":37207254,"uuid":"250847424","full_name":"tsamaya/docker-compose-postgis","owner":"tsamaya","description":"PostgreSQL/PostGIS \u0026 pgAdmin with docker-compose","archived":false,"fork":false,"pushed_at":"2020-03-30T06:47:43.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-16T23:52:42.039Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsamaya.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}},"created_at":"2020-03-28T16:54:25.000Z","updated_at":"2022-06-20T15:53:46.000Z","dependencies_parsed_at":"2022-08-18T06:36:59.152Z","dependency_job_id":null,"html_url":"https://github.com/tsamaya/docker-compose-postgis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tsamaya/docker-compose-postgis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsamaya%2Fdocker-compose-postgis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsamaya%2Fdocker-compose-postgis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsamaya%2Fdocker-compose-postgis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsamaya%2Fdocker-compose-postgis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsamaya","download_url":"https://codeload.github.com/tsamaya/docker-compose-postgis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsamaya%2Fdocker-compose-postgis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29880775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"ssl_error","status_checked_at":"2026-02-26T23:50:46.793Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-11-11T07:32:11.970Z","updated_at":"2026-02-27T01:32:49.720Z","avatar_url":"https://github.com/tsamaya.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# PostgreSQL/PostGIS \u0026 pgAdmin with docker-compose\n\n## Requirements:\n\n- docker \u003e= 18.02.0+\n\n## Quick Start\n\n- clone this repository\n- `$ cd path/to/cloned/repo/`\n- run `docker-compose up -d`\n\n`PGDATA` is mounted locally in [volumes/pgdata](./volumes/pgdata) and contains the database files.\n`pgadmin` is mounted locally in [volumes/pgadmin](./volumes/pgadmin) and contains the pgadmin session configuration files.\n\n## Environment variables\n\nThe docker-compose file has the following environment variables:\n\n- `POSTGRES_USER` the default value is **postgres**\n- `POSTGRES_PASSWORD` the default value is **SuperSecret**\n- `PGADMIN_DEFAULT_EMAIL` the default value is **pgadmin@pgadmin.org**\n- `PGADMIN_DEFAULT_PASSWORD` the default value is **SuperSecret**\n- `PGADMIN_LISTEN_PORT` the default value is **49152**\n\n## Usage\n\n### Access to pgAdmin:\n\n- **URL:** [`http://localhost:49152`](http://localhost:49152) (by default)\n- **Username:** `pgadmin@pgadmin.org` (by default)\n- **Password:** `SuperSecret` (by default)\n\n### Configure postgres within pgAdmin:\n\n- **Host name/address** `postgres`\n- **Port** `5432`\n- **Maintenance database** `postgres`\n- **Username** as `POSTGRES_USER`, by default: `postgres`\n- **Password** as `POSTGRES_PASSWORD`, by default `SuperSecret`\n\n### postgis container acess\n\nOnce you have started a database container, you can then connect to the database as follows:\n\n- run `$ docker exec -ti postgres_container /bin/bash`\n\nthen the usual `psql`, `pg_restore` comands are available, for instance:\n\n```\nroot@c01fb351f02c:/# psql -U postgres\npsql (12.2 (Debian 12.2-2.pgdg100+1))\nType \"help\" for help.\n\npostgres=#\n```\n\n### Shutdown\n\n- run `$ docker-compose down` from the directory hosting the docker-compose file\n\n### More\n\nFor more detailed instructions about how to start and control your Postgres container, see the documentation for the postgres image [here](https://registry.hub.docker.com/_/postgres/).\n\n## Resources\n\n- docker image postgis : https://registry.hub.docker.com/r/postgis/postgis\n- docker image for postgres : https://registry.hub.docker.com/_/postgres/\n- additional pgAdmin configuration : https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html\n\n## License\n\nLicensed under the MIT License\n\nA copy of the license is available in the repository's [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsamaya%2Fdocker-compose-postgis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsamaya%2Fdocker-compose-postgis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsamaya%2Fdocker-compose-postgis/lists"}