GitHub - CargoSense/docker-postgis: 🐳 Docker container for running a PostgreSQL server with PostGIS extensions installed.

🐳 Docker container for running a PostgreSQL server with PostGIS extensions installed.

Build

The container images published by this repository are built using the PostGIS project's official Docker images repository. The images here are a subset of the official team's Alpine Linux-based Docker images and are built for linux/amd64 and linux/arm64 platforms. Refer to the official project's repository if you're looking for a wider selection of operating systems and PostgreSQL/PostGIS version combinations.

Usage

You may be run this container directly using the docker run command from the root of your project:

docker run --rm -it --env POSTGRES_PASSWORD=postgres ghcr.io/cargosense/postgis:18-3.6-alpine

Alternatively, you may configure this container to run as part of a Docker Compose-driven set of services:

services:
  app:
    # Your application's configuration here.
  postgis:
    image: ghcr.io/cargosense/postgis:18-3.6-alpine
    environment:
      POSTGRES_PASSWORD: postgres
    volumes:
      - "pg-data:/var/lib/postgresql/data"

volumes:
  pg-data:

License

docker-postgis is freely available under the MIT License.