From 6f282ec5d66f6967569d15f8eaf069a8c34eb57b Mon Sep 17 00:00:00 2001 From: Fabre Florian Date: Mon, 6 Oct 2025 16:03:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7(backend)=20setup=20Docs=20app=20do?= =?UTF-8?q?ckers=20to=20work=20with=20Find?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add nginx with 'nginx' alias to the 'lasuite-net' network (keycloak calls) Add celery-dev to the 'lasuite-net' network (Find API calls in jobs) Set app-dev alias as 'impress' in the 'lasuite-net' network Add indexer configuration in common settings Signed-off-by: Fabre Florian --- compose.yml | 14 ++++++++++++-- env.d/development/common | 8 +++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/compose.yml b/compose.yml index a24a3974..1873d604 100644 --- a/compose.yml +++ b/compose.yml @@ -73,8 +73,10 @@ services: ports: - "8071:8000" networks: - - default - - lasuite-net + default: {} + lasuite-net: + aliases: + - impress volumes: - ./src/backend:/app - ./data/static:/data/static @@ -95,6 +97,9 @@ services: command: ["celery", "-A", "impress.celery_app", "worker", "-l", "DEBUG"] environment: - DJANGO_CONFIGURATION=Development + networks: + - default + - lasuite-net env_file: - env.d/development/common - env.d/development/common.local @@ -110,6 +115,11 @@ services: image: nginx:1.25 ports: - "8083:8083" + networks: + default: {} + lasuite-net: + aliases: + - nginx volumes: - ./docker/files/etc/nginx/conf.d:/etc/nginx/conf.d:ro depends_on: diff --git a/env.d/development/common b/env.d/development/common index 839bc246..7ad7589f 100644 --- a/env.d/development/common +++ b/env.d/development/common @@ -76,4 +76,10 @@ Y_PROVIDER_API_BASE_URL=http://y-provider-development:4444/api/ Y_PROVIDER_API_KEY=yprovider-api-key # Theme customization -THEME_CUSTOMIZATION_CACHE_TIMEOUT=15 \ No newline at end of file +THEME_CUSTOMIZATION_CACHE_TIMEOUT=15 + +# Indexer +SEARCH_INDEXER_CLASS="core.services.search_indexers.FindDocumentIndexer" +SEARCH_INDEXER_SECRET=find-api-key-for-docs-with-exactly-50-chars-length # Key generated by create_demo in Find app. +SEARCH_INDEXER_URL="http://find:8000/api/v1.0/documents/index/" +SEARCH_INDEXER_QUERY_URL="http://find:8000/api/v1.0/documents/search/"