{"id":19422323,"url":"https://github.com/azavea/docker-postgis","last_synced_at":"2025-09-11T08:35:00.253Z","repository":{"id":35750400,"uuid":"40029556","full_name":"azavea/docker-postgis","owner":"azavea","description":"Docker image for PostGIS","archived":false,"fork":false,"pushed_at":"2022-03-02T23:42:59.000Z","size":55,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-03T07:12:17.946Z","etag":null,"topics":["docker","postgis","postgresql"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/azavea.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":"2015-08-01T00:04:54.000Z","updated_at":"2022-03-02T23:43:02.000Z","dependencies_parsed_at":"2022-09-17T12:21:39.836Z","dependency_job_id":null,"html_url":"https://github.com/azavea/docker-postgis","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azavea%2Fdocker-postgis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azavea%2Fdocker-postgis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azavea%2Fdocker-postgis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azavea%2Fdocker-postgis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azavea","download_url":"https://codeload.github.com/azavea/docker-postgis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250654467,"owners_count":21465887,"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":["docker","postgis","postgresql"],"created_at":"2024-11-10T13:33:18.089Z","updated_at":"2025-04-24T15:32:18.780Z","avatar_url":"https://github.com/azavea.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-postgis\n\n[![CI](https://github.com/azavea/docker-postgis/workflows/CI/badge.svg?branch=master)](https://github.com/azavea/docker-postgis/actions?query=workflow%3ACI)\n\nThis repository contains a collection of templated `Dockerfile` for image variants designed to support PostGIS through PostgreSQL.\n\nIt was decided to start sunseting this project in favor of upstream - https://github.com/postgis/docker-postgis\n\n## Usage\n\n### Template Variables\n\n- `POSTGIS_MAJOR` - Major version number of PostGIS\n- `POSTGIS_VERSION` - Version number for `postgresql-X.X-postgis-X.X` package\n- `PG_MAJOR` - Major version number of the target PostgreSQL database instance\n- `VARIANT` - Base container image variant\n\n### Environment Variables\n\nBecause this image builds on the PostgreSQL container image, it supports the same environment variables. While none of these variables are required, they may aid you in using the image.\n\n#### `POSTGRES_PASSWORD`\n\nThis environment variable is recommended for you to use the PostgreSQL image. This environment variable sets the superuser password for PostgreSQL. The default superuser is defined by the `POSTGRES_USER` environment variable. In the above example, it is being set to \"mysecretpassword\".\n\n#### `POSTGRES_USER`\n\nThis optional environment variable is used in conjunction with `POSTGRES_PASSWORD` to set a user and its password. This variable will create the specified user with superuser power and a database with the same name. If it is not specified, then the default user of `postgres` will be used.\n\n#### `PGDATA`\n\nThis optional environment variable can be used to define another location - like a subdirectory - for the database files. The default is `/var/lib/postgresql/data`, but if the data volume you're using is a fs mountpoint (like with GCE persistent disks), Postgres `initdb` recommends a subdirectory (for example `/var/lib/postgresql/data/pgdata` ) be created to contain the data.\n\n#### `POSTGRES_DB`\n\nThis optional environment variable can be used to define a different name for the default database that is created when the image is first started. If it is not specified, then the value of `POSTGRES_USER` will be used.\n\n#### `POSTGRES_INITDB_ARGS`\n\nThis optional environment variable can be used to send arguments to `postgres initdb`. The value is a space separated string of arguments as `postgres initdb` would expect them. This is useful for adding functionality like data page checksums: `-e POSTGRES_INITDB_ARGS=\"--data-checksums\"`.\n\n### Testing\n\nAn example of how to use `cibuild` to build and test an image:\n\n```bash\n$ CI=1 POSTGIS_MAJOR=3 POSTGIS_VERSION=3.0.3+dfsg-2.pgdg100+1 \\\n  PG_MAJOR=13.3 VARIANT=slim \\\n  ./scripts/cibuild\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazavea%2Fdocker-postgis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazavea%2Fdocker-postgis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazavea%2Fdocker-postgis/lists"}