ajout healthcheck.py

This commit is contained in:
sky
2025-09-13 00:26:02 +02:00
parent 906af642ff
commit 52f9950685
2 changed files with 29 additions and 1 deletions

View File

@@ -30,11 +30,12 @@ COPY ./webapp ./webapp
COPY ./twitchbot ./twitchbot
COPY zabbix_agent2.conf /etc/zabbix/zabbix_agent2.conf
COPY start.sh /start.sh
COPY healthcheck.py .
RUN python3 -m venv /app/venv && \
/app/venv/bin/pip install --no-cache-dir -r requirements.txt && \
chmod +x /start.sh
HEALTHCHECK --interval=5m --timeout=1m --start-period=2m CMD /app/venv/bin/python /app/healthcheck.py --show-success --config-dir /app/config/ --hook-dir /app/config/healthcheck/
HEALTHCHECK --interval=30s --timeout=10s --start-period=2m CMD /app/venv/bin/python /app/healthcheck.py
CMD ["/start.sh"]