doc: docker compose updated

This commit is contained in:
Timothy J. Baek
2023-11-17 10:38:29 -08:00
parent 9ddde1f833
commit e588b00ab5
2 changed files with 11 additions and 6 deletions

View File

@@ -13,8 +13,9 @@ services:
# - gpu
volumes:
- ollama:/root/.ollama
ports:
- 11434:11434
# Uncomment below to expose Ollama API outside the container stack
# ports:
# - 11434:11434
container_name: ollama
pull_policy: always
tty: true
@@ -29,10 +30,14 @@ services:
dockerfile: Dockerfile
image: ollama-webui:latest
container_name: ollama-webui
depends_on:
- ollama
ports:
- 3000:8080
environment:
- "OLLAMA_API_BASE_URL=http://ollama:11434/api"
extra_hosts:
- host.docker.internal:host-gateway
- host.docker.internal:host-gateway
restart: unless-stopped
volumes: