mirror of
https://github.com/tcsenpai/youlama.git
synced 2025-06-04 02:10:21 +00:00
25 lines
475 B
YAML
25 lines
475 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
youlama:
|
|
build: .
|
|
ports:
|
|
- "7860:7860"
|
|
volumes:
|
|
- .:/app
|
|
- ./models:/app/models
|
|
environment:
|
|
- NVIDIA_VISIBLE_DEVICES=all
|
|
- OLLAMA_HOST=host.docker.internal
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
count: all
|
|
capabilities: [gpu]
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
volumes:
|
|
ollama_data: |