[PR #2695] [CLOSED] Docker compose example #36831

Closed
opened 2026-04-22 21:27:47 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/2695
Author: @jmcdice
Created: 2/22/2024
Status: Closed

Base: mainHead: docker-compose-example


📝 Commits (8)

  • 1162d58 Add docker-compose yaml file and README markdown
  • 5b11a98 Add detach to run command
  • dc1e4e0 Account for port changes in the healthcheck
  • 9f2e6cf Fix filename typo in README.md
  • 76a97b1 Update docker-compose healthcheck to use explicit bash path as requested by frob
  • 18059ac Merge remote-tracking branch 'upstream/main' into docker-compose-example
  • b91c94d Internal port never changes, so always use 11434 for health-checks
  • dc18615 Update examples/docker-compose/README.md

📊 Changes

2 files changed (+58 additions, -0 deletions)

View changed files

examples/docker-compose/README.md (+41 -0)
examples/docker-compose/docker-compose.yaml (+17 -0)

📄 Description

This PR improves upon #1379

  • Introduced variable OLLAMA_PORT for flexible port mapping.
  • Modified health check to explicitly return exit code on failure.
  • Extended health check interval to 10s for reduced load.
  • Explicitly defined build context and Dockerfile path for clarity.

Add README markdown with build and run instructions.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/2695 **Author:** [@jmcdice](https://github.com/jmcdice) **Created:** 2/22/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `docker-compose-example` --- ### 📝 Commits (8) - [`1162d58`](https://github.com/ollama/ollama/commit/1162d58e8c4e3a1b19a6e2ef10650c1c23022d8d) Add docker-compose yaml file and README markdown - [`5b11a98`](https://github.com/ollama/ollama/commit/5b11a9883ff3836f66fec2f01373fc1a7c791455) Add detach to run command - [`dc1e4e0`](https://github.com/ollama/ollama/commit/dc1e4e01152a4a156fadd8d9e70e1f6d5eae1b80) Account for port changes in the healthcheck - [`9f2e6cf`](https://github.com/ollama/ollama/commit/9f2e6cf2781442ec07e177db549c60c478cbd8ac) Fix filename typo in README.md - [`76a97b1`](https://github.com/ollama/ollama/commit/76a97b12467a82674653ea89f395f4c2ead57116) Update docker-compose healthcheck to use explicit bash path as requested by frob - [`18059ac`](https://github.com/ollama/ollama/commit/18059acac1f3ec83ade2503e16c43685e023cb32) Merge remote-tracking branch 'upstream/main' into docker-compose-example - [`b91c94d`](https://github.com/ollama/ollama/commit/b91c94d64a8e194ffbac9506e60116538c8c37ee) Internal port never changes, so always use 11434 for health-checks - [`dc18615`](https://github.com/ollama/ollama/commit/dc1861555f5536daab71b3201b45e6484be030d1) Update examples/docker-compose/README.md ### 📊 Changes **2 files changed** (+58 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `examples/docker-compose/README.md` (+41 -0) ➕ `examples/docker-compose/docker-compose.yaml` (+17 -0) </details> ### 📄 Description This PR improves upon #1379 - Introduced variable OLLAMA_PORT for flexible port mapping. - Modified health check to explicitly return exit code on failure. - Extended health check interval to 10s for reduced load. - Explicitly defined build context and Dockerfile path for clarity. Add README markdown with build and run instructions. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-22 21:27:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#36831