feat: add support for specifying an initial-network property
This network is the network that is associated with the container on creation. If specified, then the bridge network is not attached to the service. Only a single initial network can be specified at this time.
This commit is contained in:
20
README.md
20
README.md
@@ -45,6 +45,7 @@ mongo:logs <service> [-t|--tail] <tail-num-optional> # print the most recent log
|
||||
mongo:pause <service> # pause a running mongo service
|
||||
mongo:promote <service> <app> # promote service <service> as MONGO_URL in <app>
|
||||
mongo:restart <service> # graceful shutdown and restart of the mongo service container
|
||||
mongo:set <service> <key> <value> # set or clear a property for a service
|
||||
mongo:start <service> # start a previously stopped mongo service
|
||||
mongo:stop <service> # stop a running mongo service
|
||||
mongo:unexpose <service> # unexpose a previously exposed mongo service
|
||||
@@ -251,6 +252,25 @@ You can unlink a mongo service:
|
||||
dokku mongo:unlink lollipop playground
|
||||
```
|
||||
|
||||
### set or clear a property for a service
|
||||
|
||||
```shell
|
||||
# usage
|
||||
dokku mongo:set <service> <key> <value>
|
||||
```
|
||||
|
||||
Set the network to attach after the service container is started:
|
||||
|
||||
```shell
|
||||
dokku mongo:set lollipop post-create-network custom-network
|
||||
```
|
||||
|
||||
Unset the post-create-network value:
|
||||
|
||||
```shell
|
||||
dokku mongo:set lollipop post-create-network
|
||||
```
|
||||
|
||||
### Service Lifecycle
|
||||
|
||||
The lifecycle of each service can be managed through the following commands:
|
||||
|
||||
Reference in New Issue
Block a user