Skip to content

Instantly share code, notes, and snippets.

@fty4
Created November 28, 2019 11:06
Show Gist options
  • Save fty4/0cefff40ee4e22a468f76bc15ac0be73 to your computer and use it in GitHub Desktop.
Save fty4/0cefff40ee4e22a468f76bc15ac0be73 to your computer and use it in GitHub Desktop.
Dockerfile with healthcheck for docker ps
FROM nginx
HEALTHCHECK --interval=5s --timeout=3s CMD wget -q -O - localhost:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment