feat: add ability to skip restarts on link and unlink
Refs dokku/dokku-redis#192
This commit is contained in:
13
README.md
13
README.md
@@ -206,6 +206,7 @@ flags:
|
||||
|
||||
- `-a|--alias "BLUE_DATABASE"`: an alternative alias to use for linking to an app via environment variable
|
||||
- `-q|--querystring "pool=5"`: ampersand delimited querystring arguments to append to the service link
|
||||
- `-n|--no-restart "false"`: whether or not to restart the app on link (default: true)
|
||||
|
||||
A postgres service can be linked to a container. This will use native docker links via the docker-options plugin. Here we link it to our `playground` app.
|
||||
|
||||
@@ -251,6 +252,12 @@ This will cause `DATABASE_URL` to be set as:
|
||||
postgres2://lollipop:SOME_PASSWORD@dokku-postgres-lollipop:5432/lollipop
|
||||
```
|
||||
|
||||
If you specify `POSTGRES_DATABASE_SCHEME` to equal `http`, we`ll also automatically adjust `DATABASE_URL` to match the http interface:
|
||||
|
||||
```
|
||||
http://lollipop:SOME_PASSWORD@dokku-postgres-lollipop:${PLUGIN_DATASTORE_PORTS[1]}
|
||||
```
|
||||
|
||||
### unlink the postgres service from the app
|
||||
|
||||
```shell
|
||||
@@ -258,6 +265,10 @@ postgres2://lollipop:SOME_PASSWORD@dokku-postgres-lollipop:5432/lollipop
|
||||
dokku postgres:unlink <service> <app>
|
||||
```
|
||||
|
||||
flags:
|
||||
|
||||
- `-n|--no-restart "false"`: whether or not to restart the app on unlink (default: true)
|
||||
|
||||
You can unlink a postgres service:
|
||||
|
||||
> NOTE: this will restart your app and unset related environment variables
|
||||
@@ -459,7 +470,7 @@ flags:
|
||||
- `-I|--image-version IMAGE_VERSION`: the image version to start the service with
|
||||
- `-N|--initial-network INITIAL_NETWORK`: the initial network to attach the service to
|
||||
- `-P|--post-create-network NETWORKS`: a comman-separated list of networks to attach the service container to after service creation
|
||||
- `-R|--restart-apps "true"`: whether to force an app restart
|
||||
- `-R|--restart-apps "true"`: whether or not to force an app restart (default: false)
|
||||
- `-S|--post-start-network NETWORKS`: a comman-separated list of networks to attach the service container to after service start
|
||||
- `-s|--shm-size SHM_SIZE`: override shared memory size for postgres docker container
|
||||
|
||||
|
||||
Reference in New Issue
Block a user