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: