0.0.0 • Published 5 years ago
docker-pg v0.0.0
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()
0.0.0
5 years ago