Skip to content

Commit

Permalink
docker healthcheck for config service (needed for compose's depends_o…
Browse files Browse the repository at this point in the history
…n option)
  • Loading branch information
sqshq committed May 9, 2017
1 parent 28dacdc commit b6bdb80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ MAINTAINER Alexander Lukyanchikov <[email protected]>
ADD ./target/config.jar /app/
CMD ["java", "-Xmx200m", "-jar", "/app/config.jar"]

HEALTHCHECK --interval=10s --timeout=3s CMD curl -f http://localhost:8888/health || exit 1

EXPOSE 8888

0 comments on commit b6bdb80

Please sign in to comment.