Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Can't assign PORT without breaking HEALTHCHECK #22

Open
ScrumpyJack opened this issue Jul 28, 2020 · 0 comments
Open

Can't assign PORT without breaking HEALTHCHECK #22

ScrumpyJack opened this issue Jul 28, 2020 · 0 comments

Comments

@ScrumpyJack
Copy link

Love the simplicity here. Chosen this over Portus and others, as i prefer slim.

let port = process.env.PORT || 80;

If I assign PORT to something, i see that node listens on that port in the container, but the container's HEALTHCHECK fails as it's looking at PORT 80

HEALTHCHECK --interval=15s --timeout=3s CMD curl -f http://localhost/ || exit 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant