{"id":13558917,"url":"https://github.com/helmi03/docker-postgis","last_synced_at":"2025-04-03T14:30:42.783Z","repository":{"id":12188198,"uuid":"14790959","full_name":"helmi03/docker-postgis","owner":"helmi03","description":"https://index.docker.io/u/helmi03/postgis/","archived":false,"fork":false,"pushed_at":"2015-07-28T08:20:08.000Z","size":253,"stargazers_count":31,"open_issues_count":6,"forks_count":40,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-04T10:43:35.482Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/helmi03.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}},"created_at":"2013-11-29T02:14:47.000Z","updated_at":"2022-12-29T11:34:52.000Z","dependencies_parsed_at":"2022-08-20T09:10:10.420Z","dependency_job_id":null,"html_url":"https://github.com/helmi03/docker-postgis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmi03%2Fdocker-postgis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmi03%2Fdocker-postgis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmi03%2Fdocker-postgis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmi03%2Fdocker-postgis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helmi03","download_url":"https://codeload.github.com/helmi03/docker-postgis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247018272,"owners_count":20869982,"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-08-01T12:05:13.865Z","updated_at":"2025-04-03T14:30:42.515Z","avatar_url":"https://github.com/helmi03.png","language":"Shell","funding_links":[],"categories":["Shell","others"],"sub_categories":[],"readme":"# Dockerfile PostGIS\n\n## Info\n\nThis Dockerfile creates a container running PostGIS 2.1 in PostgreSQL 9.3\n\n- expose port `5432`\n- initializes a database in `/var/lib/postgresql/9.3/main`\n- superuser in the database: `docker/docker`\n\n\n## Install\n\n- `docker build -t postgis:2.1 .` or `docker build -t postgis:2.1 github.com/helmi03/docker-postgis.git`\n- `docker run -d postgis:2.1`\n\n\n## Usage\n\nTo connect to database, use docker inspect CONTAINER and grep IPAddress, e.g.\n\n```bash\nCONTAINER=$(sudo docker run -d -t helmi03/postgis)\nCONTAINER_IP=$(sudo docker inspect -f '{{ .NetworkSettings.IPAddress }}' $CONTAINER)\npsql -h $CONTAINER_IP -p 5432 -U docker -W postgres\n```\n\n\n## Persistance\n\nYou can mount the database directory as a volume to persist your data:\n\n```bash\ndocker run -d -v $HOME/postgres_data:/var/lib/postgresql postgis:2.1\n```\n\nMakes sure first need to create source folder: `mkdir -p ~HOME/postgres_data`.\n\nIf you copy existing postgresql data, you need to set permission properly (chown/chgrp)\n\n\n## Meta\n\nBuild with docker version `0.7.0`\n\n\n## References\n\n- Docker trusted build: [helmi03/docker-postgis](https://registry.hub.docker.com/u/helmi03/docker-postgis/)\n- [stigi/dockerfile-postgresql](https://github.com/stigi/dockerfile-postgresql)\n- [Docker PostgreSQL Service](http://docs.docker.io/en/latest/examples/postgresql_service/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelmi03%2Fdocker-postgis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelmi03%2Fdocker-postgis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelmi03%2Fdocker-postgis/lists"}