From c5306f51570f246ce481685aaf4f02c9b1bc969f Mon Sep 17 00:00:00 2001 From: Mohamed Marrouchi Date: Mon, 21 Oct 2024 11:49:36 +0100 Subject: [PATCH] feat: add ollama docker service --- docker/docker-compose.ollama.dev.yml | 6 ++++++ docker/docker-compose.ollama.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 docker/docker-compose.ollama.dev.yml create mode 100644 docker/docker-compose.ollama.yml diff --git a/docker/docker-compose.ollama.dev.yml b/docker/docker-compose.ollama.dev.yml new file mode 100644 index 00000000..7cf95404 --- /dev/null +++ b/docker/docker-compose.ollama.dev.yml @@ -0,0 +1,6 @@ +version: "3.9" + +services: + ollama: + ports: + - "11434:11434" diff --git a/docker/docker-compose.ollama.yml b/docker/docker-compose.ollama.yml new file mode 100644 index 00000000..33996e69 --- /dev/null +++ b/docker/docker-compose.ollama.yml @@ -0,0 +1,28 @@ +version: "3.9" + +services: + ollama: + image: ollama/ollama + container_name: ollama + volumes: + - ollama:/root/.ollama + # deploy: + # resources: + # reservations: + # devices: + # - driver: nvidia + # count: all + # capabilities: [gpu] + restart: unless-stopped + networks: + - ollama-network + + api: + networks: + - ollama-network + +volumes: + ollama: + +networks: + ollama-network: