chore: configure OLLAMA_ORIGINS for CORS support

This commit is contained in:
SysVis AI 2025-12-28 19:51:07 +07:00
parent ff6e1ebeda
commit c10ca433e4

View file

@ -7,9 +7,11 @@ services:
restart: always restart: always
ports: ports:
- "8338:80" - "8338:80"
# Optional if you want to have Ollama running in a container
depends_on: depends_on:
- ollama - ollama
# Optional if you want to have Ollama running in a container
ollama: ollama:
image: ollama/ollama:latest image: ollama/ollama:latest
container_name: ollama-service container_name: ollama-service
@ -20,6 +22,7 @@ services:
- ./ollama_data:/root/.ollama - ./ollama_data:/root/.ollama
environment: environment:
- OLLAMA_KEEP_ALIVE=24h - OLLAMA_KEEP_ALIVE=24h
- OLLAMA_ORIGINS="*"
# NVIDIA GPU Support Configuration # NVIDIA GPU Support Configuration
deploy: deploy:
resources: resources: