Skip to content

Commit 7bc4ab6

Browse files
committed
Merge pull request #291 from infosiftr/postgres-initdb
Add documentation for new postgres initdb logic
2 parents 1cd0ac8 + ca31442 commit 7bc4ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres/content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This optional environment variable can be used to define another location - like
4545

4646
# How to extend this image
4747

48-
If you would like to do additional initialization in an image derived from this one, add a `*.sh` script 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 source any `*.sh` script found in that directory to do further initialization before starting the service. If you need to execute SQL commands as part of your initialization, the use of Postgres'' [single user mode](http://www.postgresql.org/docs/9.3/static/app-postgres.html#AEN90580) is highly recommended.
48+
If you would like to do additional initialization in an image derived from this one, add a `*.sql` or `*.sh` script 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` script found in that directory to do further initialization before starting the service.
4949

5050
You can also extend the image with a simple `Dockerfile` to set the locale. The following example will set the default locale to `de_DE.utf8`:
5151

0 commit comments

Comments
 (0)