Skip to content

Commit 89dd6be

Browse files
committed
feat: add volume & change service tag
1 parent b47bce8 commit 89dd6be

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

playbooks/swarm-production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
- service
195195

196196
- import_role:
197-
name: roles/services/d4g-13-wsl-kotaemon
197+
name: roles/services/wsl-kotaemon
198198
vars:
199199
deploy_on: "metal-1.dataforgood.fr"
200200
replicas: 1

roles/services/wsl-kotaemon/templates/docker-compose.yml.j2

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
services:
22
kotaemon:
3-
image:
4-
pull_policy: if_not_present
5-
entrypoint: ["/bin/sh", "-c", "pip install -e /app/taxonomy && tail -f /dev/null"]
3+
image: ghcr.io/dataforgoodfr/13_democratiser_sobriete:latest
4+
entrypoint: [ "/bin/bash", "/app/launch.sh" ]
65
volumes:
76
- /opt/13-wsl/data/docstore:/data/docstore
87
environment:
@@ -18,7 +17,7 @@ services:
1817
- node.hostname == {{ deploy_on }}
1918

2019
ollama:
21-
image : ollama/ollama
20+
image: ollama/ollama
2221
container_name: ollama
2322
ports:
2423
- '11434:11434'
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PG_DATABASE_URL = {{ lookup('env', 'PG_DATABASE_URL') }}
1+
PG_DATABASE_URL = {{ lookup('env', 'WSL_PG_DATABASE_URL') }}
22
LLM_INFERENCE_URL = "ollama:11434/v1/"
33
LLM_INFERENCE_MODEL = " hf.co/PleIAs/Pleias-RAG-1B-gguf"
44
LLM_INFERENCE_API_KEY = "ollama"
@@ -7,3 +7,11 @@ EMBEDDING_MODEL = "snowflake-arctic-embed2"
77
EMBEDDING_MODEL_API_KEY = "ollama"
88
COLLECTION_ID = 1
99
USER_ID = "123456"
10+
GRADIO_SERVER_NAME = 0.0.0.0
11+
GRADIO_SERVER_PORT = 8080
12+
OLLAMA_DEPLOYMENT = docker
13+
VECTOSTORE_URL = "https://a1486cef-682e-46af-8a72-a6c7af31b9aa.eu-central-1-0.aws.cloud.qdrant.io:6333"
14+
VECTOR_STORE_API_KEY = {{ lookup('env', 'WSL_QDRANT_API_KEY') }}
15+
CELLAR_ADDON_KEY_ID = {{ lookup('env', 'WSL_CELLAR_ADDON_KEY_ID') }}
16+
CELLAR_ADDON_KEY_SECRET = {{ lookup('env', 'WSL_CELLAR_ADDON_KEY_SECRET') }}
17+
CELLAR_ADDON_HOST = "cellar-c2.services.clever-cloud.com"

0 commit comments

Comments
 (0)