PostgreSQL for ARM-HF architecture (e.g. banana-pi), loosely based on official docker PGSQL
9.0K
Loosely based on official docker postgres repository.
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'
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.Content type
Image
Digest
sha256:6854843df…
Size
-
Last updated
over 11 years ago
docker pull zsoltm/postgresql-armhf