Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Postgres Docker

Prerequisites:

  • boot2docker
  • postgresql-client on other docker containers

Postgres Docker Setup

cd github.com/unravelin/infrastructure/postgres
docker build -t="ravelin/infrastructure-postgres" .

# Example: sudo docker run --name [container name] -p [port to access:port exposed] -i -t [statd image name] -m [Memory (int)][memory unit (b, k, m or g)] -d (to run not to attach)
docker run -d -m 128m --name postgres -p 5432:5432 ravelin/infrastructure-postgres

Roles

The container will create a PostgreSQL role named docker with docker as the password and then create a database docker owned by the docker role.

Docker Pull Command
Owner
ravelin
Source Repository