broadinstitute / seqr

web-based analysis tool for rare disease genomics
GNU Affero General Public License v3.0
176 stars 89 forks source link

Add database init to docker compose #4468

Closed bpblanken closed 1 week ago

bpblanken commented 1 week ago

Per the Postgres image docs:

scripts in /docker-entrypoint-initdb.d are only run if you start the container with a data directory that is empty; any pre-existing database will be left untouched on container startup

so this should be safe even without IF NOT EXISTS .