Skip to content

Add healthchecks to docker image  #12443

Closed
@ToeiRei

Description

@ToeiRei
  • Gitea version (or commit ref):
  • Git version:
  • Operating system: docker
  • Database (use [x]):
    • PostgreSQL
      MySQL
      MSSQL
      SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
      No
      Not relevant
  • Log gist:

Description

Docker can check containers for if their services are alive. This can/should be built into the container image itself and is basically a command that checks if the service is alive and kicking.

Screenshots

Activity

zeripath

zeripath commented on Aug 6, 2020

@zeripath
Contributor

PRs are welcome

stale

stale commented on Oct 12, 2020

@stale

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

modem7

modem7 commented on Apr 19, 2022

@modem7

It would be easy enough if the API had some form of public /health endpoint (I looked, but couldn't find one. The /version endpoint requires a login).

If that occurred, we'd be able to do a healthcheck with something like:

    healthcheck:
      test: curl -fSs 127.0.0.1:3000/api/v1/health || exit 1
      start_period: 60s
      interval: 5s
      timeout: 10s
      retries: 3
wxiaoguang

wxiaoguang commented on May 4, 2022

@wxiaoguang
Contributor

The health check endpoint has been merged.

locked as resolved and limited conversation to collaborators on May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lunny@zeripath@wxiaoguang@modem7@ToeiRei

        Issue actions

          Add healthchecks to docker image · Issue #12443 · go-gitea/gitea