Skip to content

Commit

Permalink
chore: fix port used in healthcheck for docker
Browse files Browse the repository at this point in the history
expose correct port as well
  • Loading branch information
simonwep committed May 8, 2024
1 parent 437760c commit ab1e005
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit ab1e005

Please sign in to comment.