govpf / docker-postgres

Recettes de génération des images postgres

Home Page:https://hub.docker.com/r/govpf/postgres

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker PostgreSQL

Procédure de génération de container PostgreSQL.

Variables d'environnement

Attribute Description Type Default
POSTGRES_DB postgress database string postgres
POSTGRES_USER postgres user string postgres
POSTGRES_PASSWORD postgres password string postgres
PGDATA postgres data path string /var/lib/postgresql/data

Utilisation

Build

docker build -t dsipf/postgres:latest 11

Exécution

docker run --name my-postgres -d -p 5432:5432 dsipf/postgres
docker run --name my-postgres -d -p 5432:5432 -v postgres_sample:/var/lib/postgresql dispf/postgres
docker run --name my-postgres -d [-p 5432:5432] [-e POSTGRES_DB=my_database] [-e POSTGRES_USER=my_user] [-e POSTGRES_PASSWORD=my_password] dsipf/postgres

Configuration par défaut:

  • username: postgres
  • password: postgres
  • database: postgres

Développement

Pré-requis

Initialisation

git clone https://gitlab.gov.pf/docker/postgres.git docker-postgres
cd docker-postgres

About

Recettes de génération des images postgres

https://hub.docker.com/r/govpf/postgres


Languages

Language:Shell 57.8%Language:Dockerfile 42.2%