https://github.com/usdocker/usdocker-postgres
USDocker script for postgres
https://github.com/usdocker/usdocker-postgres
Last synced: about 2 months ago
JSON representation
USDocker script for postgres
- Host: GitHub
- URL: https://github.com/usdocker/usdocker-postgres
- Owner: usdocker
- Created: 2017-08-20T16:56:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-06T20:33:42.000Z (about 5 years ago)
- Last Synced: 2025-08-18T20:53:58.185Z (9 months ago)
- Language: JavaScript
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
npm install -g @usdocker/usdocker # Install it first
npm install -g @usdocker/postgres
usdocker -r # Update USDocker database
```
## Start the postgres service
```bash
usdocker postgres up
```
## Stop the postgres service
```bash
usdocker postgres down
```
## Check the postgres status
```bash
usdocker postgres status
```
## Use the `psql` command line client
```bash
usdocker postgres client -- [args]
```
## Run the bash
```bash
usdocker postgres connect -- [args]
```
## Customize your service
You can setup the variables by using:
```bash
usdocker postgres --set variable=value
```
Default values
- image: "postgres:9-alpine",
- folder: "/home/jg/.usdocker/data/postgres",
- user: "postgres",
- password: "password",
- port: 5432