dockerized-postgres

0.1.10 • Public • Published

Simple package for starting and shutting down dockerized postgres instance (mainly for tests purposes)

Usage example:

const DockerizedPostgres = require('dockerized-postgres');

const postgres = new DockerizedPostgres({
  beforeHook: (port) => {}, // will be called before container start
  afterHook: (port) => {}, // will be called right after container shutdown,
  tag: '11', // image tag
});

await postgres.start();
await postgres.shutdown();

Readme

Keywords

Package Sidebar

Install

npm i dockerized-postgres

Weekly Downloads

0

Version

0.1.10

License

MIT

Unpacked Size

6.25 kB

Total Files

4

Last publish

Collaborators

  • sadkovoy