mirror of
https://github.com/vndangkhoa/Sys-Arc-Visl.git
synced 2026-04-05 01:17:57 +07:00
chore: configure OLLAMA_ORIGINS for CORS support
This commit is contained in:
parent
ff6e1ebeda
commit
c10ca433e4
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue