Skip to content

mrbitcoiner/postgres-pod

Repository files navigation

Postgres Pod

A simple container environment with PostgreSql and Adminer

CLI Features

  • Create databases
  • Dump databases
  • Add databases to dump schedules
  • Load databases from dump files

Getting Started

  • Copy and modify .env.example as you want (postgres password inside the file):
cp .env.example .env
  • Build the image:
./control.sh build
  • Start the container:
./control.sh up
  • Stop the container:
./control.sh down
  • Clean all the data:
./control.sh clean 
  • Check control options:
./control.sh help

Upgrading

  • With the container running, dump your databases:
./control.sh dumpdb <db_name> <dump_label>
  • Stop the containers:
./control.sh down
  • Pull master:
git pull origin master
  • Build the image:
./control.sh build
  • Start the container:
./control.sh up
  • Restore your databases from dumps:
./control.sh loaddb <db_name> <dump_label>

If you have some improvement suggestion, please leave it in the issues.

About

Postgres + Adminer container environment

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages