mirror of
https://github.com/xpltdco/media-rip.git
synced 2026-04-03 02:53:58 -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
6cb3828b92
commit
245ec0e567
1 changed files with 1 additions and 1 deletions
|
|
@ -63,6 +63,6 @@ ENV MEDIARIP__DOWNLOADS__OUTPUT_DIR=/downloads \
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
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"]
|
CMD ["python", "start.py"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue