add DB_DROP_EXISTING and BIZ_DB_DROP_EXISTING environment variables

This commit is contained in:
JeremJR 2017-09-07 14:33:14 +02:00
parent 1537af85c5
commit d4d1d41768
1 changed files with 8 additions and 0 deletions

View File

@ -339,6 +339,14 @@ These variables are optional, and used in conjunction to create users and databa
`DB_ADMIN_PASS` if no value is provided, this is automatically set using the value from the linked container: `MYSQL_ENV_MYSQL_ROOT_PASSWORD` or `POSTGRES_ENV_POSTGRES_PASSWORD`.
### `DB_DROP_EXISTING`, `BIZ_DB_DROP_EXISTING`
`DB_DROP_EXISTING` and `BIZ_DB_DROP_EXISTING` can be used to drop existing databases in order to reuse an existing database instance.
`DB_DROP_EXISTING` default value is `N`.
`BIZ_DB_DROP_EXISTING` default value is `N`.
# How to extend this image
If you would like to do additional initialization, you can add a `*.sh` script under `/opt/custom-init.d`. The `startup.sh` file will source any `*.sh` script found in this directory to do further initialization before starting the service.