More backend dependencies updates
This commit is contained in:
Generated
+827
-821
File diff suppressed because it is too large
Load Diff
@@ -208,7 +208,7 @@ async def meilisearch_init():
|
||||
quiz_count = await Quiz.objects.filter(public=True).count()
|
||||
number_of_docs = 0
|
||||
for i in meilisearch.index(settings.meilisearch_index).get_stats():
|
||||
number_of_docs = i[1]["numberOfDocuments"]
|
||||
number_of_docs = i[1]
|
||||
break
|
||||
if number_of_docs != quiz_count:
|
||||
print("MeiliSearch and Database got out of sync, syncthing them")
|
||||
|
||||
@@ -44,6 +44,13 @@ services:
|
||||
- 9000:9000
|
||||
- 9001:9001
|
||||
restart: unless-stopped
|
||||
redis:
|
||||
image: redis:alpine
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: [ "CMD", "redis-cli","ping" ]
|
||||
ports:
|
||||
- 6379:6379
|
||||
volumes:
|
||||
db:
|
||||
search:
|
||||
|
||||
Reference in New Issue
Block a user