Public Repository

Last pushed: 9 months ago
Short Description
ScionCC dependency Postgres/PostGIS database
Full Description

===========================================================

Dockerfile for a SciON PostgreSQL/PostGIS database image

DESCRIPTION

Based on library/postgres
See https://registry.hub.docker.com/_/postgres/

Inspired by mdillon/postgis
See https://registry.hub.docker.com/u/mdillon/postgis/

DOCKER IMAGE

sudo docker build -t scioncc/scion_pg:9.4-1 .

USAGE

Set ENV variables:
POSTGRES_PASSWORD: password for superuser (named postgres by default)
POSTGRES_ION_PASSWORD: password for ion user (defaulting to superuser password)

Exposes ports:
5432: Postgres standard port

Start as daemon

sudo docker run --name pg -e POSTGRES_PASSWORD=foo -e POSTGRES_ION_PASSWORD=bar -d scioncc/scion_pg:9.4-1

Use psql to connect

sudo docker run -it --link pg:postgres --rm postgres sh -c 'exec psql -h "$POSTGRES_PORT_5432_TCP_ADDR" -p "$POSTGRES_PORT_5432_TCP_PORT" -U postgres'

To connect using bash

sudo docker run --rm -it scioncc/scion_pg:9.4-1 bash -l

Stop daemon

sudo docker stop pg

Remove container

sudo docker rm pg

Docker Pull Command
Owner
scioncc

Comments (0)