fix: ajout Ollama dans docker-compose.yml (production)
This commit is contained in:
@@ -48,3 +48,26 @@ services:
|
|||||||
# - OBSIGATE_SECURE_COOKIES=false # Set true if behind HTTPS reverse proxy
|
# - OBSIGATE_SECURE_COOKIES=false # Set true if behind HTTPS reverse proxy
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
# AI configuration
|
||||||
|
- AI_DEFAULT_PROVIDER=deepseek
|
||||||
|
- OLLAMA_BASE_URL=http://ollama:11434/v1
|
||||||
|
- OLLAMA_MODEL=qwen2.5-coder:1.5b
|
||||||
|
|
||||||
|
ollama:
|
||||||
|
image: ollama/ollama:latest
|
||||||
|
container_name: obsigate-ollama
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "11434:11434"
|
||||||
|
volumes:
|
||||||
|
- ollama_data:/root/.ollama
|
||||||
|
entrypoint: ["/bin/sh", "-c"]
|
||||||
|
command:
|
||||||
|
- |
|
||||||
|
ollama serve &
|
||||||
|
sleep 5
|
||||||
|
ollama pull qwen2.5-coder:1.5b
|
||||||
|
wait
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
ollama_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user