Last active
March 31, 2024 15:36
-
-
Save EvilFreelancer/26691739daf0771cca837b4afadb3724 to your computer and use it in GitHub Desktop.
Пример запуска OLLAMA в Docker с активным GPU
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
ollama: | |
image: ollama/ollama | |
restart: unless-stopped | |
volumes: | |
- ./ollama_data:/root/.ollama | |
ports: | |
- "127.0.0.1:11434:11434" | |
deploy: | |
resources: | |
reservations: | |
devices: | |
- driver: nvidia | |
count: all | |
capabilities: [ gpu ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment