Update Docker healthcheck
All checks were successful
Test and build Docker image / docker (push) Successful in 1m31s
All checks were successful
Test and build Docker image / docker (push) Successful in 1m31s
This commit is contained in:
6
.vscode/launch.json
vendored
6
.vscode/launch.json
vendored
@ -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
|
||||
|
@ -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"]
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user