Docker healthcheck #18

Open
opened 2026-10-05 03:12:43 +02:00 by adam · 0 comments
Owner

In the docker-compose.yml file, the healthcheck section has port 5000 hardcoded, which does not match the FLASK_PORT setting.

You can simple add a variable instead of a port.

However, I suggest considering a different change instead.
Inside the container, I would keep a static port—for example, 5000—and set the FLASK_PORT variable only for external mapping.

After this change, you'll be able to
explicitly expose a port in the Dockerfile and move the health check there.

In the `docker-compose.yml` file, the `healthcheck` section has port 5000 hardcoded, which does not match the `FLASK_PORT` setting. You can simple add a variable instead of a port. However, I suggest considering a different change instead. Inside the container, I would keep a static port—for example, 5000—and set the `FLASK_PORT` variable only for external mapping. After this change, you'll be able to explicitly expose a port in the Dockerfile and move the health check there. <!-- github-sync-id:5229314794 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/mc-webui#18