Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add healthcheck for docker #89

Merged
merged 1 commit into from
Feb 22, 2023
Merged

add healthcheck for docker #89

merged 1 commit into from
Feb 22, 2023

Conversation

Jisagi
Copy link
Contributor

@Jisagi Jisagi commented Feb 22, 2023

adds a basic healthckeck with curl for docker environments

@Forceu Forceu merged commit 9d04352 into Forceu:master Feb 22, 2023
@Forceu
Copy link
Owner

Forceu commented Feb 22, 2023

Thank you!

@Jisagi
Copy link
Contributor Author

Jisagi commented Mar 6, 2023

If anyone ever stumbles upon this pull request because their healthcheck won't work. If youa re running a custom port, update your healthcheck command like this:

Docker

--health-cmd='curl --fail http://127.0.0.1:<CUSTOM_PORT> || exit 1'

Docker-Compose

version: "3"
services:
  gokapi:
    image: f0rc3/gokapi:latest
    environment:
       - ...
    healthcheck:
      test: curl --fail http://127.0.0.1:<CUSTOM_PORT> || exit 1
      # The rest is optional
      interval: 30s
      retries: 3
      start_period: 5s
      timeout: 10s

@Forceu
Copy link
Owner

Forceu commented Mar 6, 2023

Thanks for the heads-up. I will probably add a note during the setup for that case.

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

Successfully merging this pull request may close these issues.

None yet

2 participants