Skip to content

Commit

Permalink
Merge pull request #9 from Jiooum102/8-getting-started-with-olama
Browse files Browse the repository at this point in the history
[#8] Feat: Ollama
  • Loading branch information
Jiooum102 authored Oct 27, 2024
2 parents 5cb825e + 707367f commit a5d7baa
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions services/olama/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
version: '3.9'

services:
ollama:
volumes:
- type: bind
source: "/mnt/data/100.DockerVolumes/1.Ollama"
target: "/root/.ollama"

container_name: ollama
pull_policy: always
tty: true
restart: unless-stopped
image: ollama/ollama:latest
ports:
- 7869:11434
environment:
- OLLAMA_KEEP_ALIVE=24h
networks:
- ollama-docker
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
expose:
- 8080/tcp
ports:
- 8002:8080/tcp
environment:
- OLLAMA_BASE_URL=http://ollama:11434
# uncomment the following if you are running ollama on the docker host and remove the ollama service below
#- OLLAMA_BASE_URL=http://host.docker.internal:11434
volumes:
- type: bind
source: "/mnt/data/100.DockerVolumes/open-webui"
target: "/app/backend/data"
depends_on:
- ollama
tty: true
restart: unless-stopped
networks:
- ollama-docker

networks:
ollama-docker:
name: ollama-network
driver: bridge

0 comments on commit a5d7baa

Please sign in to comment.