You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also specify custom environment variables to start the postgres service in semi-colon separated form.
88
+
You can also specify custom environment variables to start the postgres service in semi-colon separated form.
89
89
90
90
```shell
91
91
export DATABASE_CUSTOM_ENV="USER=alpha;HOST=beta"
@@ -181,7 +181,7 @@ flags:
181
181
-`-a|--alias "BLUE_DATABASE"`: an alternative alias to use for linking to an app via environment variable
182
182
-`-q|--querystring "pool=5"`: ampersand delimited querystring arguments to append to the service link
183
183
184
-
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.
184
+
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.
185
185
186
186
> NOTE: this will restart your app
187
187
@@ -212,14 +212,14 @@ The host exposed here only works internally in docker containers. If you want yo
212
212
dokku postgres:link other_service playground
213
213
```
214
214
215
-
It is possible to change the protocol for database_url by setting the environment variable database_database_scheme on the app. Doing so will after linking will cause the plugin to think the service is not linked, and we advise you to unlink before proceeding.
215
+
It is possible to change the protocol for `DATABASE_URL` by setting the environment variable `POSTGRES_DATABASE_SCHEME` on the app. Doing so will after linking will cause the plugin to think the service is not linked, and we advise you to unlink before proceeding.
Unexpose the service, removing access to it from the public interface (0. 0. 0. 0):
299
+
Unexpose the service, removing access to it from the public interface (`0.0.0.0`):
300
300
301
301
```shell
302
302
dokku postgres:unexpose lolipop
@@ -323,7 +323,7 @@ You can promote the new service to be the primary one:
323
323
dokku postgres:promote other_service playground
324
324
```
325
325
326
-
This will replace database_url with the url from other_service and generate another environment variable to hold the previous value if necessary. You could end up with the following for example:
326
+
This will replace `DATABASE_URL` with the url from other_service and generate another environment variable to hold the previous value if necessary. You could end up with the following for example:
0 commit comments