1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00

fix cmak healthcheck

This commit is contained in:
kev 2021-03-25 18:47:11 +08:00
parent c2b79b5f3f
commit 8713f1d5fe
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
#
FROM debian:buster
MAINTAINER kev <noreply@easypi.pro>
MAINTAINER EasyPi Software Foundation
ENV SCALA_VERSION 2.12.10
ENV SBT_VERSION 1.3.8
@ -35,5 +35,3 @@ EXPOSE 9000
ENTRYPOINT ["bin/cmak"]
CMD ["-Dconfig.file=conf/application.conf", "-Dhttp.port=9000", "-Dpidfile.path=/dev/null"]
HEALTHCHECK CMD curl -f http://127.0.0.1:9000/api/health || exit 1

View File

@ -1,4 +1,4 @@
version: "3.7"
version: "3.8"
services:
@ -37,4 +37,6 @@ services:
- KAFKA_MANAGER_PASSWORD=admin
depends_on:
- zookeeper
healthcheck:
test: curl -f http://127.0.0.1:9000/api/health || exit 1
restart: unless-stopped