Zack Saadioui
8/26/2024
1
2
bash
sudo apt-get install docker-compose
1
2
3
bash
git clone https://github.com/valiantlynx/ollama-docker.git
cd ollama-docker
1
docker-compose.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
version: '3.8' services: ollama: image: ollama/ollama ports: - "11434:11434" volumes: - ./ollama:/root/.ollama restart: unless-stopped open-webui: image: ghcr.io/open-webui/open-webui:main ports: - "8080:8080" depends_on: - ollama environment: - OLLAMA_API_BASE_URL=http://localhost:11434/api networks: default: external: name: bridge
1
ollama
1
open-webui
1
ollama
1
open-webui
1
ollama
1
2
bash
docker-compose up -d
1
2
bash
docker-compose logs -f
1
2
bash
docker-compose down
Copyright Ā© ArsturnĀ 2025