Merge pull request #42 from ollama-webui/dev

Create compose.yaml
This commit is contained in:
Timothy Jaeryang Baek 2023-10-30 14:55:19 -05:00 committed by GitHub
commit cb63d9f0ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

38
compose.yaml Normal file
View file

@ -0,0 +1,38 @@
version: '3.6'
services:
ollama:
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities:
- gpu
volumes:
- ollama:/root/.ollama
ports:
- 11434:11434
environment:
- OLLAMA_ORIGINS="*"
container_name: ollama
pull_policy: always
tty: true
restart: unless-stopped
image: ollama/ollama:latest
ollama-webui:
restart: unless-stopped
build:
context: .
args:
OLLAMA_API_BASE_URL: ''
dockerfile: Dockerfile
image: ollama-webui:latest
container_name: ollama-webui
ports:
- 3000:8080
volumes:
ollama: {}