docker compose commands

This commit is contained in:
Xi Yan 2024-11-08 14:00:54 -08:00
parent bd0622ef10
commit 8cd7e406c0
9 changed files with 129 additions and 0 deletions

View file

@ -0,0 +1,11 @@
services:
ollama:
image: ollama/ollama:latest
network_mode: "host"
volumes:
- ollama:/root/.ollama # this solution synchronizes with the docker volume and loads the model rocket fast
ports:
- "11434:11434"
command: []
volumes:
ollama: