mirror of
https://github.com/skylanix/MamieHenriette.git
synced 2026-02-06 06:40:35 +01:00
healthcheck mis dans le Dockerfile à la place d'un scripte
This commit is contained in:
@@ -30,12 +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=30s --timeout=10s --start-period=2m CMD /app/venv/bin/python /app/healthcheck.py
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD pgrep python > /dev/null || exit 1
|
||||
|
||||
CMD ["/start.sh"]
|
||||
|
||||
Reference in New Issue
Block a user