postgresql-container icon indicating copy to clipboard operation
postgresql-container copied to clipboard

add initialization example script

Open aushacker opened this issue 2 years ago • 5 comments

A simple example showing how to configure a database with some test data.

When using ephemeral storage the database name specified by POSTGRESQL_DATABASE must be different from that created in the user provided script, otherwise the container will crash loop. This is due to the default scripts hard failing when trying to create a database that the user supplied init script has already created.

See issue #296 for narrative (known problem).

aushacker avatar Dec 13 '22 06:12 aushacker