Socket
Book a DemoInstallSign in
Socket

docker-pg

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docker-pg

A postgres docker container for use with node packages, mostly tests

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

docker

FAQs

Package last updated on 23 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts