USDocker script for postgres
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.eslintignore
.eslintrc.yml
.gitignore
.npmignore
.travis.yml
README.md
package-lock.json
package.json
usdocker_postgres.js

README.md

Useful script for 'postgres' service

This Useful Script creates a postgres server based on a Docker Image. You don't have know docker to use this solution.

Installing

npm install -g @usdocker/usdocker  # Install it first
npm install -g @usdocker/postgres
usdocker -r    # Update USDocker database

Start the postgres service

usdocker postgres up

Stop the postgres service

usdocker postgres down

Check the postgres status

usdocker postgres status

Use the psql command line client

usdocker postgres client -- [args]

Run the bash

usdocker postgres connect -- [args]

Customize your service

You can setup the variables by using:

usdocker postgres --set variable=value

Default values

  • image: "postgres:9-alpine",
  • folder: "/home/jg/.usdocker/data/postgres",
  • user: "postgres",
  • password: "password",
  • port: 5432