From 764dffda05dc9fc94c5d42d422931058ca97c97e Mon Sep 17 00:00:00 2001 From: DonHaul Date: Mon, 26 Aug 2024 16:08:58 +0200 Subject: [PATCH] opensearch: auto index upon container start * ref: cern-sis/issues-inspire/issues/530 --- docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 3f33162d..a4a2e6b1 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -104,7 +104,7 @@ services: - ./backoffice/.envs/local/.postgres ports: - "8000:8000" - command: sh -c 'poetry run python manage.py migrate && poetry run python manage.py opensearch index create --force && poetry run python manage.py runserver 0.0.0.0:8000' + command: sh -c 'poetry run python manage.py migrate && poetry run python manage.py opensearch index rebuild --force && poetry run python manage.py opensearch document index --force && poetry run python manage.py runserver 0.0.0.0:8000' postgres-airflow: image: postgres:13