Add docker
This commit is contained in:
12
db/init-db.sh
Executable file
12
db/init-db.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
echo "Restoring database from seed.dump..."
|
||||
pg_restore \
|
||||
--clean \
|
||||
--if-exists \
|
||||
--no-acl \
|
||||
--no-owner \
|
||||
-U "${POSTGRES_USER}" \
|
||||
-d "${POSTGRES_DB}" \
|
||||
"/docker-entrypoint-initdb.d/seed.dump"
|
||||
BIN
db/seed.dump
Normal file
BIN
db/seed.dump
Normal file
Binary file not shown.
Reference in New Issue
Block a user