A PostgreSQL Dockerfile compatible with spin-docker
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ACCC4CF8.asc
Dockerfile
LICENSE
README.rst
insecure_key
run_postgres.sh
sd_client_crontab
sd_postgres_client.py

README.rst

sd-postgres

A PostgreSQL database Dockerfile compatible with the spin-docker PaaS.

Quickstart

This image is available as a trusted build on the docker index. The easiest way to get it on your server is using docker pull:

$ docker pull atbaker/sd-postgres

Alternatively, you can clone this repository and build the image yourself:

$ docker build -t=sd-postgres .

Using this image

This image is very insecure! It uses Phusion's baseimage-docker and its insecure key for SSH authentication. The Postgres authentication settings are similarly insecure. Do not use this image in production without modification.

Once you have started a container from this image, you can access it via SSH:

# Use your container's host and port
$ ssh -i insecure_key root@127.0.0.1 -p 49153
$ su postgres -c 'psql'

Or can connect to the PostgreSQL database directly if you have the PostgreSQL client installed:

# Use your container's host and port
$ psql -U postgres -h 127.0.0.1 -p 49154

Learn more

Learn more about this image and how to use it in the spin-docker documentation: http://spin-docker.readthedocs.org/

Learn more about Dockerfiles and how to build them in the Docker documentation: http://docs.docker.io/en/latest/reference/builder/