From ab1e005bdce8ec97c07e3f0c2a7e1a2c9b360f6d Mon Sep 17 00:00:00 2001 From: Simon Reinisch Date: Wed, 8 May 2024 19:01:00 +0200 Subject: [PATCH] chore: fix port used in healthcheck for docker expose correct port as well --- .env.example | 6 +++--- Dockerfile | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index a6d0c5f..4240d01 100644 --- a/.env.example +++ b/.env.example @@ -16,9 +16,9 @@ GENESIS_LOG_MODE=development # Port to listen on GENESIS_PORT=8080 -# Users to be created on start up, use ! as suffix for the username -# to indicate that this user should be created as an admin. -# These can add, remove and edit users. +# Users to be created on start up. +# Use ! as suffix for the username to indicate that this user should be created as an admin. +# Admins can add, remove and edit users. GENESIS_CREATE_USERS=admin!:2lWK6m4hgmxjUGHo # Allowed username pattern diff --git a/Dockerfile b/Dockerfile index 35d1117..07991b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,12 +21,12 @@ WORKDIR /app COPY --from=build /app/genesis /app -EXPOSE 8080 +EXPOSE ${GENESIS_PORT} ENV GENESIS_BUILD_VERSION=${GENESIS_BUILD_VERSION} ENV GENESIS_BUILD_DATE=${GENESIS_BUILD_DATE} ENV GENESIS_BUILD_COMMIT=${GENESIS_BUILD_COMMIT} -HEALTHCHECK CMD wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1 +HEALTHCHECK CMD wget --no-verbose --tries=1 --spider http://localhost:${GENESIS_PORT}/health || exit 1 CMD ["./genesis"]