Ollama service with bge-m3 for embeddings (M1, internal network only)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 16:08:22 +01:00
co-authored by Claude Opus 5.5
parent 8757bf65fa
commit 458d852ef0
2 changed files with 16 additions and 0 deletions
+1
View File
@@ -14,3 +14,4 @@ solr_cores_stage/
AGENTS.md AGENTS.md
.vibe/ .vibe/
var_solr9/ var_solr9/
var_ollama/
+15
View File
@@ -90,6 +90,18 @@ services:
ports: ports:
- 8986:8983 - 8986:8983
# Modèle d'embedding bge-m3 servi par Ollama (projet recherche IA, M1).
# Pas de port publié : joignable seulement depuis php (réseau ollama), http://ollama:11434
ollama:
image: ollama/ollama:0.40.16
environment:
# garde le modèle chargé en mémoire (pas de rechargement à froid entre deux appels)
- OLLAMA_KEEP_ALIVE=-1
volumes:
- ./var_ollama:/root/.ollama
networks:
- ollama
# solr-legacy: # solr-legacy:
# build: ./Docker/solr-legacy/ # build: ./Docker/solr-legacy/
# volumes: # volumes:
@@ -119,6 +131,7 @@ services:
- redis - redis
- server - server
- solr - solr
- ollama
# for xdebug # for xdebug
# https://github.com/docker/for-linux/issues/264#issuecomment-965465879 # https://github.com/docker/for-linux/issues/264#issuecomment-965465879
extra_hosts: extra_hosts:
@@ -130,6 +143,7 @@ services:
- redis - redis
- solr - solr
- solr9 - solr9
- ollama
# php-legacy: # php-legacy:
# build: ./Docker/php-legacy/ # build: ./Docker/php-legacy/
@@ -221,3 +235,4 @@ networks:
redis: redis:
server: server:
solr: solr:
ollama: