mirror of
https://github.com/xpltdco/media-rip.git
synced 2026-06-02 10:54:29 -06:00
Dockerfile: use MEDIARIP__SERVER__PORT in healthcheck
Healthcheck now respects the PORT env var instead of hardcoding 8000, so containers running on non-default ports get proper health status.
This commit is contained in:
parent
bba1a922c0
commit
726e0804b3
1 changed files with 1 additions and 1 deletions
|
|
@ -63,6 +63,6 @@ ENV MEDIARIP__DOWNLOADS__OUTPUT_DIR=/downloads \
|
|||
EXPOSE 8000
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
||||
CMD curl -f http://localhost:8000/api/health || exit 1
|
||||
CMD curl -f http://localhost:${MEDIARIP__SERVER__PORT:-8000}/api/health || exit 1
|
||||
|
||||
CMD ["python", "start.py"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue