From 15f2eaeaa035127343185c29ed64cf9a87c89d24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Hovm=C3=B6ller?= Date: Thu, 11 Mar 2021 14:20:13 +0100 Subject: [PATCH] Updated README with what I found when using it I had some trouble getting my stuff to deploy because of environment variables not being like these docs said they would be. I'm not 100% sure my changes are totally correct, but I felt it was better to do this drive by PR than to leave it as it was. --- README.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e5c5302b..06edcefa 100644 --- a/README.md +++ b/README.md @@ -192,18 +192,20 @@ dokku postgres:link lolipop playground The following environment variables will be set automatically by docker (not on the app itself, so they won’t be listed when calling dokku config): ``` -DOKKU_DATABASE_LOLIPOP_NAME=/lolipop/DATABASE -DOKKU_DATABASE_LOLIPOP_PORT=tcp://172.17.0.1:5432 -DOKKU_DATABASE_LOLIPOP_PORT_5432_TCP=tcp://172.17.0.1:5432 -DOKKU_DATABASE_LOLIPOP_PORT_5432_TCP_PROTO=tcp -DOKKU_DATABASE_LOLIPOP_PORT_5432_TCP_PORT=5432 -DOKKU_DATABASE_LOLIPOP_PORT_5432_TCP_ADDR=172.17.0.1 +DOKKU_POSTGRES_LOLIPOP_NAME=/lolipop/DATABASE +DOKKU_POSTGRES_LOLIPOP_PORT=tcp://172.17.0.1:5432 +DOKKU_POSTGRES_LOLIPOP_PORT_5432_TCP=tcp://172.17.0.1:5432 +DOKKU_POSTGRES_LOLIPOP_PORT_5432_TCP_PROTO=tcp +DOKKU_POSTGRES_LOLIPOP_PORT_5432_TCP_PORT=5432 +DOKKU_POSTGRES_LOLIPOP_PORT_5432_TCP_ADDR=172.17.0.1 ``` +The username will be `postgres`. + The following will be set on the linked application by default: ``` -DATABASE_URL=postgres://lolipop:SOME_PASSWORD@dokku-postgres-lolipop:5432/lolipop +DATABASE_URL=postgres://postgres:SOME_PASSWORD@dokku-postgres-lolipop:5432/lolipop ``` The host exposed here only works internally in docker containers. If you want your container to be reachable from outside, you should use the 'expose' subcommand. Another service can be linked to your app: @@ -653,4 +655,4 @@ dokku postgres:backup-unschedule lolipop If you wish to disable the `docker pull` calls that the plugin triggers, you may set the `POSTGRES_DISABLE_PULL` environment variable to `true`. Once disabled, you will need to pull the service image you wish to deploy as shown in the `stderr` output. -Please ensure the proper images are in place when `docker pull` is disabled. \ No newline at end of file +Please ensure the proper images are in place when `docker pull` is disabled.