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:
Jose Diaz-Gonzalez
2023-02-07 14:31:11 -05:00
parent 45c1b1047b
commit 434cca5aeb
6 changed files with 87 additions and 7 deletions

View File

@@ -44,6 +44,7 @@ postgres:logs <service> [-t|--tail] <tail-num-optional> # print the most recent
postgres:pause <service> # pause a running postgres service
postgres:promote <service> <app> # promote service <service> as DATABASE_URL in <app>
postgres:restart <service> # graceful shutdown and restart of the postgres service container
postgres:set <service> <key> <value> # set or clear a property for a service
postgres:start <service> # start a previously stopped postgres service
postgres:stop <service> # stop a running postgres service
postgres:unexpose <service> # unexpose a previously exposed postgres service
@@ -256,6 +257,25 @@ You can unlink a postgres service:
dokku postgres:unlink lollipop playground
```
### set or clear a property for a service
```shell
# usage
dokku postgres:set <service> <key> <value>
```
Set the network to attach after the service container is started:
```shell
dokku postgres:set lollipop post-create-network custom-network
```
Unset the post-create-network value:
```shell
dokku postgres:set lollipop post-create-network
```
### Service Lifecycle
The lifecycle of each service can be managed through the following commands: