mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Add database migrations service
This commit is contained in:
6
src/migrator/entrypoint.sh
Normal file
6
src/migrator/entrypoint.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
export WAIT_HOSTS="${POSTGRES_HOST}:${POSTGRES_PORT}"
|
||||
export WAIT_BEFORE=3
|
||||
export WAIT_TIMEOUT=15
|
||||
./wait && \
|
||||
pgmigrate apply -d "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"
|
||||
Reference in New Issue
Block a user