Skip to content

Simple healthcheck #74

@javierspn

Description

@javierspn

Is your feature request related to a problem? Please describe.
Just add a simple health check to the compose file

Describe the solution you'd like
I have implemented this one:

    healthcheck:
      test:
        - CMD-SHELL
        - >
          wget --spider -q
          --header='Origin: ${BASE_URL}'
          --header='Host: ${HOSTNAME_PUBLIC:-example.domain.com}'
          http://127.0.0.1:$${PORT:-3000} || exit 1

Describe alternatives you've considered
I add here my external domain (I use an http proxy)

Additional context
I just like to do a healthcheck on all of my containers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions