docker-pg

0.0.0 • Public • Published

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()

/docker-pg/

    Package Sidebar

    Install

    npm i docker-pg

    Weekly Downloads

    0

    Version

    0.0.0

    License

    ISC

    Unpacked Size

    5.94 kB

    Total Files

    7

    Last publish

    Collaborators

    • wesleytodd