mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Wait isn't required.
This commit is contained in:
@@ -4,5 +4,4 @@ RUN addgroup -S migrator && adduser -S -G migrator migrator
|
|||||||
USER migrator
|
USER migrator
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
COPY --chmod=0777 . .
|
COPY --chmod=0777 . .
|
||||||
COPY --from=ghcr.io/ufoscout/docker-compose-wait:latest /wait ./wait
|
|
||||||
ENTRYPOINT [ "./entrypoint.sh" ]
|
ENTRYPOINT [ "./entrypoint.sh" ]
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/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}"
|
pgmigrate apply -d "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"
|
||||||
|
|||||||
Reference in New Issue
Block a user