Update Docker healthcheck
All checks were successful
Test and build Docker image / docker (push) Successful in 1m31s

This commit is contained in:
2025-05-04 05:28:37 +02:00
parent d8247fec01
commit c3a11f55b0
3 changed files with 7 additions and 2 deletions

6
.vscode/launch.json vendored
View File

@ -8,7 +8,11 @@
"module": "uvicorn",
"args": [
"discord_rss_bot.main:app",
"--reload"
"--reload",
"--host",
"0.0.0.0",
"--port",
"5000",
],
"jinja": true,
"justMyCode": true

View File

@ -12,4 +12,5 @@ RUN --mount=type=cache,target=/root/.cache/uv \
COPY --chown=botuser:botuser discord_rss_bot/ /home/botuser/discord-rss-bot/discord_rss_bot/
EXPOSE 5000
VOLUME ["/home/botuser/.local/share/discord_rss_bot/"]
HEALTHCHECK --interval=10m --timeout=5s CMD ["uv", "run", "./discord_rss_bot/healthcheck.py"]
CMD ["uv", "run", "uvicorn", "discord_rss_bot.main:app", "--host=0.0.0.0", "--port=5000", "--proxy-headers", "--forwarded-allow-ips='*'", "--log-level", "debug"]

View File

@ -10,7 +10,7 @@ services:
# - /Docker/Bots/discord-rss-bot:/home/botuser/.local/share/discord_rss_bot/
- data:/home/botuser/.local/share/discord_rss_bot/
healthcheck:
test: ["CMD", "python", "discord_rss_bot/healthcheck.py"]
test: [ "CMD", "uv", "run", "./discord_rss_bot/healthcheck.py" ]
interval: 1m
timeout: 10s
retries: 3