From 65224401d308304eeeca0c1ef2d5af478b56a7e3 Mon Sep 17 00:00:00 2001 From: Docker Library Bot Date: Mon, 7 Dec 2015 16:01:20 -0800 Subject: [PATCH] Run update.sh --- postgres/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/postgres/README.md b/postgres/README.md index 815929af0..29f297f27 100644 --- a/postgres/README.md +++ b/postgres/README.md @@ -62,6 +62,10 @@ This optional environment variable is used in conjunction with `POSTGRES_PASSWOR This optional environment variable can be used to define another location - like a subdirectory - for the database files. The default is `/var/lib/postgresql/data`, but if the data volume you're using is a fs mountpoint (like with GCE persistent disks), Postgres `initdb` recommends a subdirectory (for example `/var/lib/postgresql/data/pgdata` ) be created to contain the data. +### `POSTGRES_DB` + +This optional environment variable can be used to define a different name for the default database that is created when the image is first started. If it is not specified, than the value of `POSTGRES_USER` will be used. + # How to extend this image If you would like to do additional initialization in an image derived from this one, add one or more `*.sql` or `*.sh` scripts under `/docker-entrypoint-initdb.d` (creating the directory if necessary). After the entrypoint calls `initdb` to create the default `postgres` user and database, it will run any `*.sql` files and source any `*.sh` scripts found in that directory to do further initialization before starting the service.