Skip to content

Mior/pgsql-restore-ready-image

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pgsql-restore-ready-image

PostgreSQL restore Image, It will restore backup file as part of image build image, so you can quickly start your DB.

Is intended to use as 'dev' postgres file not production. restore-not-run.sh was extracted from postgres official repository.

See

its base on https://medium.com/@diego.hordi/postgresql-restore-ready-docker-image-7001a54400e9

Build

docker build -t <image-name:tag-name> . --build-arg FILE=<backup-file-name> --build-arg DBNAME=<database-name> --build-arg POSTGRES_PASSWORD=<postgres-password>

Run

docker run -d --name <container-name> -p 5432:5432 <image-name:tag-name>

About

PostgreSQL restore-ready Image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 95.5%
  • Dockerfile 4.5%