Skip to content

Commit

Permalink
Merge pull request inspirehep#95 from DonHaul/rebuild-locally
Browse files Browse the repository at this point in the history
opensearch: auto index upon container start
  • Loading branch information
DonHaul authored Aug 26, 2024
2 parents 33774d5 + 78e7f1b commit 21fb774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backoffice-repo/backoffice-repo/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21fb774

Please sign in to comment.