services:
ollama:
image: ${OLLAMA_IMAGE:-ollama/ollama:latest}
container_name: ${OLLAMA_NAME}
ports:
- "${OLLAMA_PORT}:11434"
volumes:
- ${OLLAMA_VOLUME}:/root/.ollama
restart: always
external: true