Skip to content

Tob1as/docker-postgresql-postgis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostgreSQL with PostGIS on Raspberry Pi / ARM

Supported tags and respective Dockerfile links

* = set arch (amd64, arm64 or arm)

What is PostGIS?

PostGIS is an open source software program that adds support for geographic objects to the PostgreSQL object-relational database. PostGIS follows the Simple Features for SQL specification from the Open Geospatial Consortium (OGC).

wikipedia.org/wiki/PostGIS and postgis.net

PostgreSQL, often simply "Postgres", is an object-relational database management system (ORDBMS) with an emphasis on extensibility and standards-compliance.

wikipedia.org/wiki/PostgreSQL and postgresql.org

logo

About these images:

  • a port of the official PostGIS-Image, Sourcecode.
  • based on official Images: postgres.
  • build on Docker Hub with Autobuild, for example and more details see in this repository.

How to use these images:

  • $ docker run --name some-postgis -v $(pwd)/postgis:/var/lib/postgresql/data -p 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword -d tobi312/rpi-postgresql-postgis:15-3.4-alpine-arm
  • more see official PostgreSQL-Image and PostGIS-Image

Docker-Compose

version: '2.4'
services:
  postgis:
    image: tobi312/rpi-postgresql-postgis:15-3.4-alpine-arm
    #container_name: postgis
    volumes:
      - ./postgis:/var/lib/postgresql/data
      #- /etc/timezone:/etc/timezone:ro
      #- /etc/localtime:/etc/localtime:ro
    environment:
       POSTGRES_PASSWORD: mysecretpassword
       #POSTGRES_DB: user
       #POSTGRES_USER: user
    restart: unless-stopped
    ports:
      - 5432:5432
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 60s
      timeout: 5s
      retries: 5

This Image on