Switch to POSTGRES_DOCKER_ARGS variable

Previously extra command line arguments were passed after the command,
based on the discussion in https://github.com/dokku/dokku-postgres/pull/40,
it was agreed that using a single environment variable was more clear.
This commit is contained in:
Matt Colyer
2015-11-02 21:03:38 -08:00
parent a71847cc1e
commit 50f980ce03
2 changed files with 8 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ dokku plugin:install https://github.com/dokku/dokku-postgres.git postgres
```
postgres:clone <name> <new-name> Create container <new-name> then copy data from <name> into <new-name>
postgres:connect <name> Connect via psql to a postgres service
postgres:create <name> <env=val> Create a postgres service with environment variables
postgres:create <name> Create a postgres service with environment variables
postgres:destroy <name> Delete the service and stop its container if there are no links left
postgres:export <name> Export a dump of the postgres service database
postgres:expose <name> [port] Expose a postgres service on custom port if provided (random port otherwise)
@@ -52,6 +52,7 @@ dokku postgres:create lolipop
# official postgres image
export POSTGRES_IMAGE="postgres"
export POSTGRES_IMAGE_VERSION="9.4.4"
export POSTGRES_DOCKER_ARGS="USER=alpha;HOST=beta"
dokku postgres:create lolipop
# get connection information as follows