0.0.0 • Published 5 years ago

docker-pg v0.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

A utility to create a Postgres Docker container

Mainly for testing setup, this is a utility to create and wait for a Postgres container. Requires docker and docker-compose on your system.

$ npm i docker-pg
const dockerpg = require('docker-pg')
const shutdown = await dockerpg({
  serviceName: 'my-test-pg',
  hostPort: 5432
})

// do stuff with the container

await shutdown()