Skip to content

Commit

Permalink
add healthcheck to Ollama service
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Jan 9, 2024
1 parent 7435282 commit 90d7720
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ollama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ jobs:
image: ollama/ollama:latest
ports:
- 11434:11434
options: --name ollama
options: >-
--name ollama
--health-cmd "curl --fail http://localhost:11434/ || exit 1"
--health-interval 10s
--health-timeout 1s
--health-retries 10
steps:
- name: Pull the LLM in the Ollama service
Expand Down

0 comments on commit 90d7720

Please sign in to comment.