Skip to content

Commit 2de2bc6

Browse files
committed
🔧(backend) setup Docs app dockers to work with Find
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 <ffabre@hybird.org>
1 parent 8f2e932 commit 2de2bc6

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

compose.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ services:
7373
ports:
7474
- "8071:8000"
7575
networks:
76-
- default
77-
- lasuite-net
76+
default: {}
77+
lasuite-net:
78+
aliases:
79+
- impress
7880
volumes:
7981
- ./src/backend:/app
8082
- ./data/static:/data/static
@@ -95,6 +97,9 @@ services:
9597
command: ["celery", "-A", "impress.celery_app", "worker", "-l", "DEBUG"]
9698
environment:
9799
- DJANGO_CONFIGURATION=Development
100+
networks:
101+
- default
102+
- lasuite-net
98103
env_file:
99104
- env.d/development/common
100105
- env.d/development/common.local
@@ -110,6 +115,11 @@ services:
110115
image: nginx:1.25
111116
ports:
112117
- "8083:8083"
118+
networks:
119+
default: {}
120+
lasuite-net:
121+
aliases:
122+
- nginx
113123
volumes:
114124
- ./docker/files/etc/nginx/conf.d:/etc/nginx/conf.d:ro
115125
depends_on:

env.d/development/common

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,10 @@ Y_PROVIDER_API_BASE_URL=http://y-provider-development:4444/api/
7676
Y_PROVIDER_API_KEY=yprovider-api-key
7777

7878
# Theme customization
79-
THEME_CUSTOMIZATION_CACHE_TIMEOUT=15
79+
THEME_CUSTOMIZATION_CACHE_TIMEOUT=15
80+
81+
# Indexer
82+
SEARCH_INDEXER_CLASS="core.services.search_indexers.FindDocumentIndexer"
83+
SEARCH_INDEXER_SECRET=find-api-key-for-docs-with-exactly-50-chars-length # Key generated by create_demo in Find app.
84+
SEARCH_INDEXER_URL="http://find:8000/api/v1.0/documents/index/"
85+
SEARCH_INDEXER_QUERY_URL="http://find:8000/api/v1.0/documents/search/"

0 commit comments

Comments
 (0)