set healthcheck in dockerfile

This commit is contained in:
Maxi Quoß
2021-10-15 02:25:33 +02:00
parent f179450e3b
commit 088eee39e1
2 changed files with 3 additions and 3 deletions

View File

@@ -22,4 +22,7 @@ RUN apt-get update && \
apt-get -y install iputils-ping nmap curl && \
rm -rf /var/lib/apt/lists/*
HEALTHCHECK --interval=10s \
CMD curl -fs "http://localhost:$DJANGO_PORT/health/" || exit 1
CMD ["./run.sh"]