added support for movie search
This commit is contained in:
parent
3117bac8a9
commit
29f0e73c0b
18 changed files with 198 additions and 32 deletions
10
init-scripts/01-create-db.sh
Normal file
10
init-scripts/01-create-db.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Create a postgres database for the user set in the .env file.
|
||||
# Everything works fine without this, but this prevents a FATAL
|
||||
# error from spamming the logs
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
||||
CREATE DATABASE "$POSTGRES_USER";
|
||||
GRANT ALL PRIVILEGES ON DATABASE "$POSTGRES_USER" TO "$POSTGRES_USER";
|
||||
EOSQL
|
Loading…
Add table
Add a link
Reference in a new issue