iac/docker/AI/docker-compose.yml
Matt Reeves 904702c17e
All checks were successful
Lint on PR / Lint YAML files (pull_request) Successful in 8s
Deploy to Hosts / deploy (pull_request) Successful in 52s
Merge branch 'main' into renovate/ghcr.io-open-webui-open-webui-0.x
2024-09-09 21:42:12 -04:00

35 lines
688 B
YAML

version: "3.8"
services:
ollama:
image: ollama/ollama:0.3.10
container_name: ollama
restart: unless-stopped
volumes:
- ollama:/root/.ollama
ports:
- "11434:11434"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
open-webui:
image: ghcr.io/open-webui/open-webui:0.3.21
container_name: open-webui
restart: unless-stopped
ports:
- 3000:8080
volumes:
- open-webui:/app/backend/data
extra_hosts:
- host.docker.internal:host-gateway
volumes:
ollama:
external: true
open-webui:
external: true