Dockerfile
links16-3.4-alpine-*
(Dockerfile) (on AlpineLinux 3.18)15-3.4-alpine-*
(Dockerfile) (on AlpineLinux 3.18)14-3.4-alpine-*
(Dockerfile) (on AlpineLinux 3.18)13-3.4-alpine-*
(Dockerfile) (on AlpineLinux 3.18)* = set arch (amd64, arm64 or arm)
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).
PostgreSQL, often simply "Postgres", is an object-relational database management system (ORDBMS) with an emphasis on extensibility and standards-compliance.
$ 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
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