Merge pull request #44 from ollama-webui/dev

fix: Update compose.yaml
This commit is contained in:
Timothy Jaeryang Baek 2023-10-30 16:49:08 -05:00 committed by GitHub
commit b5059ad680
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,20 +2,21 @@ version: '3.6'
services:
ollama:
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities:
- gpu
# Comment below for GPU support
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities:
# - gpu
volumes:
- ollama:/root/.ollama
ports:
- 11434:11434
environment:
- OLLAMA_ORIGINS="*"
- 'OLLAMA_ORIGINS=*'
container_name: ollama
pull_policy: always
tty: true