Public Repository

Last pushed: 2 years ago
Short Description
PostgreSQL for ARM-HF architecture (e.g. banana-pi), loosely based on official docker PGSQL
Full Description

PostgreSQL

Loosely based on official docker postgres repository.

Supported tags

How to use this image

Primarily it's meant to be linked to an application that uses it.

Start a postgres instance:

docker run --name postgres-for-shiny-app -e POSTGRES_PASSWORD=mysecretpassword -d zsoltm/postgresql-armhf

... and and start an application linked to it:

docker run --name shiny-app-instance --link postgres-for-shiny-app:postgres -d your/shiny-app

Optionally if you need to thinker your PostgreSQL DB manually, you might run a psql connected to it easily:

docker run -it --link postgres-for-shiny-app:postgres --rm postgres sh -c 'exec psql -h "$POSTGRES_PORT_5432_TCP_ADDR" -p "$POSTGRES_PORT_5432_TCP_PORT" -U $POSTGRES_ENV_POSTGRES_USER'

Environment Variables

It's highly recommended to specify these rather than going with the default values.

  • POSTGRES_USER - User to create a database for, defaults to postgres.
  • POSTGRES_PASSWORD - Pasword for POSTGRES_USER or postgres with superuser rights.
Docker Pull Command
Owner
zsoltm

Comments (2)
zsoltm
2 months ago

Thanks for the feedback, fixed.

neomindryan
6 months ago

Thanks for this! FYI the command to start the server in the "Full Description" area of this page specifies "zsoltm/postgres-armhf" as the image name, but this project is "zsoltm/postgresql-armhf".