@@ -1,6 +1,7 @@
FROM registry.sdsys.ru/iru/iru-base:0.1
ENV PATH="/usr/share/web-registry-promo/bin:$PATH" LANG="en_US.UTF-8" DB_CLUSTER="mongodb"
EXPOSE 9000
+HEALTHCHECK --start-period=30s --interval=15s --timeout=5s --retries=2 CMD curl -f 127.0.0.1:9000 || exit 1
CMD ["web-registry-promo", "-Dconfig.file=/etc/web-registry-promo/application.conf", "-Dlogger.file=/etc/web-registry-promo/application-logger.xml", "-Dpidfile.path=/var/run/play.pid"]
RUN set -x \
&& yum install web-registry-promo -y \