Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

Commit

Permalink
Fix database healthcheck (#318)
Browse files Browse the repository at this point in the history
Because the PostgreSQL user is not always "postgres", do not specify a
user to the Healthcheck command. It will also works correctly.

Closes #313
  • Loading branch information
pichouk authored Oct 4, 2018
1 parent e6deb77 commit 42e8e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN apk add --no-cache \
COPY setup-wale.sh /docker-entrypoint-initdb.d/

#Healthcheck to make sure container is ready
HEALTHCHECK CMD pg_isready -U postgres || exit 1
HEALTHCHECK CMD pg_isready || exit 1

# Add and configure entrypoint and command
COPY entrypoint.sh /
Expand Down

0 comments on commit 42e8e07

Please sign in to comment.