Wait isn't required.

This commit is contained in:
iPromKnight
2024-03-09 23:18:15 +00:00
parent b0c3675f36
commit 856a34a8ef
2 changed files with 1 additions and 5 deletions

View File

@@ -4,5 +4,4 @@ RUN addgroup -S migrator && adduser -S -G migrator migrator
USER migrator
WORKDIR /tmp
COPY --chmod=0777 . .
COPY --from=ghcr.io/ufoscout/docker-compose-wait:latest /wait ./wait
ENTRYPOINT [ "./entrypoint.sh" ]

View File

@@ -1,6 +1,3 @@
#!/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}"