diff --git a/src/migrator/Dockerfile b/src/migrator/Dockerfile index 2f75b5d..0637bf9 100644 --- a/src/migrator/Dockerfile +++ b/src/migrator/Dockerfile @@ -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" ] diff --git a/src/migrator/entrypoint.sh b/src/migrator/entrypoint.sh index 21a0769..0e7264a 100644 --- a/src/migrator/entrypoint.sh +++ b/src/migrator/entrypoint.sh @@ -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}"