Skip to content

Commit

Permalink
Merge branch 'develop' into dependabot/github_actions/docker/build-pu…
Browse files Browse the repository at this point in the history
…sh-action-6
  • Loading branch information
NyakudyaA authored Jun 25, 2024
2 parents 82a142c + 02446ec commit d3a9174
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,14 @@ In some instances users want to run some SQL scripts to populate the database. T
variable `POSTGRES_DB` allows us to specify multiple database that can be created on startup. When
running scripts they will only be executed against the first database ie
`POSTGRES_DB=gis,data,sample`. The SQL script will be executed against the `gis` database.
The database will start accepting connection only after the script will have been executed.
Additionally, a lock file is generated in `/docker-entrypoint-initdb.d`, which will prevent the
scripts from getting executed after the first container startup. Provide
`IGNORE_INIT_HOOK_LOCKFILE=true` to execute the scripts on _every_ container start.
By default, the lockfile is generated in `/docker-entrypoint-initdb.d` but it can be overwritten by
passing the environment variable `SCRIPTS_LOCKFILE_DIR` which can point to another location i.e
`IGNORE_INIT_HOOK_LOCKFILE=true` to execute the scripts on _every_ container start. By default, the
lockfile is generated in `/docker-entrypoint-initdb.d` but it can be overwritten by
passing the environment variable `SCRIPTS_LOCKFILE_DIR` which can point to another location i.e
```shell
-e SCRIPTS_LOCKFILE_DIR=/data/ \
Expand Down

0 comments on commit d3a9174

Please sign in to comment.