mirror of
https://github.com/Alexander-D-Karpov/akarpov
synced 2024-11-30 23:33:43 +03:00
Compare commits
2 Commits
9e9cc2f58c
...
cc12621b67
Author | SHA1 | Date | |
---|---|---|---|
|
cc12621b67 | ||
|
2398b3650c |
|
@ -15,5 +15,3 @@ CELERY_BROKER_URL=redis://redis:6379/0
|
||||||
# Flower
|
# Flower
|
||||||
CELERY_FLOWER_USER=debug
|
CELERY_FLOWER_USER=debug
|
||||||
CELERY_FLOWER_PASSWORD=debug
|
CELERY_FLOWER_PASSWORD=debug
|
||||||
|
|
||||||
ELASTIC_SEARCH=http://elasticsearch:9200/
|
|
||||||
|
|
|
@ -612,7 +612,7 @@
|
||||||
HAYSTACK_CONNECTIONS = {
|
HAYSTACK_CONNECTIONS = {
|
||||||
"default": {
|
"default": {
|
||||||
"ENGINE": "haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine",
|
"ENGINE": "haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine",
|
||||||
"URL": env("ELASTIC_SEARCH", default="http://127.0.0.1:9200/"),
|
"URL": "http://127.0.0.1:9200/", # Assuming Elasticsearch is running on localhost
|
||||||
"INDEX_NAME": "haystack",
|
"INDEX_NAME": "haystack",
|
||||||
"TIMEOUT": 60 * 5,
|
"TIMEOUT": 60 * 5,
|
||||||
"BATCH_SIZE": 100,
|
"BATCH_SIZE": 100,
|
||||||
|
|
13
local.yml
13
local.yml
|
@ -100,16 +100,11 @@ services:
|
||||||
command: /start-flower
|
command: /start-flower
|
||||||
|
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
image: elasticsearch:7.17.14
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.3 # Use the desired version
|
||||||
container_name: elasticsearch
|
container_name: akarpov_local_elasticsearch
|
||||||
environment:
|
environment:
|
||||||
- cluster.name=docker-cluster
|
- discovery.type=single-node # This avoids bootstrap checks, suitable for development.
|
||||||
- bootstrap.memory_lock=true
|
- ES_JAVA_OPTS=-Xms512m -Xmx512m # Set the JVM heap size
|
||||||
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
||||||
ulimits:
|
|
||||||
memlock:
|
|
||||||
soft: -1
|
|
||||||
hard: -1
|
|
||||||
volumes:
|
volumes:
|
||||||
- akarpov_local_elasticsearch_data:/usr/share/elasticsearch/data
|
- akarpov_local_elasticsearch_data:/usr/share/elasticsearch/data
|
||||||
ports:
|
ports:
|
||||||
|
|
31
poetry.lock
generated
31
poetry.lock
generated
|
@ -2684,17 +2684,6 @@ gevent = ["gevent (>=1.4.0)"]
|
||||||
setproctitle = ["setproctitle"]
|
setproctitle = ["setproctitle"]
|
||||||
tornado = ["tornado (>=0.2)"]
|
tornado = ["tornado (>=0.2)"]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "h11"
|
|
||||||
version = "0.14.0"
|
|
||||||
description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1"
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.7"
|
|
||||||
files = [
|
|
||||||
{file = "h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761"},
|
|
||||||
{file = "h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hiredis"
|
name = "hiredis"
|
||||||
version = "2.2.3"
|
version = "2.2.3"
|
||||||
|
@ -7046,24 +7035,6 @@ files = [
|
||||||
{file = "uuid6-2023.5.2.tar.gz", hash = "sha256:03cb97f25ca7b0ac4bea2b3a205f66bfe7f58d3b179bb0f76e1d7946446b6133"},
|
{file = "uuid6-2023.5.2.tar.gz", hash = "sha256:03cb97f25ca7b0ac4bea2b3a205f66bfe7f58d3b179bb0f76e1d7946446b6133"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "uvicorn"
|
|
||||||
version = "0.24.0.post1"
|
|
||||||
description = "The lightning-fast ASGI server."
|
|
||||||
optional = false
|
|
||||||
python-versions = ">=3.8"
|
|
||||||
files = [
|
|
||||||
{file = "uvicorn-0.24.0.post1-py3-none-any.whl", hash = "sha256:7c84fea70c619d4a710153482c0d230929af7bcf76c7bfa6de151f0a3a80121e"},
|
|
||||||
{file = "uvicorn-0.24.0.post1.tar.gz", hash = "sha256:09c8e5a79dc466bdf28dead50093957db184de356fcdc48697bad3bde4c2588e"},
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.dependencies]
|
|
||||||
click = ">=7.0"
|
|
||||||
h11 = ">=0.8"
|
|
||||||
|
|
||||||
[package.extras]
|
|
||||||
standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1)", "watchfiles (>=0.13)", "websockets (>=10.4)"]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "vine"
|
name = "vine"
|
||||||
version = "5.0.0"
|
version = "5.0.0"
|
||||||
|
@ -7678,4 +7649,4 @@ testing = ["coverage (>=5.0.3)", "zope.event", "zope.testing"]
|
||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.0"
|
lock-version = "2.0"
|
||||||
python-versions = "^3.11"
|
python-versions = "^3.11"
|
||||||
content-hash = "96905e9613ee78eb47461e88acc8fe40b481de95425960bb71a559c368f942bb"
|
content-hash = "689de22a6cd3d81d0b7d0e3a5cf13394c647d90386cc5d3d7deb7fc55d8c5b02"
|
||||||
|
|
|
@ -109,7 +109,6 @@ textract = "^1.6.5"
|
||||||
uuid6 = "^2023.5.2"
|
uuid6 = "^2023.5.2"
|
||||||
fastapi = "0.86.0"
|
fastapi = "0.86.0"
|
||||||
django-haystack = {extras = ["elasticsearch"], version = "^3.2.1"}
|
django-haystack = {extras = ["elasticsearch"], version = "^3.2.1"}
|
||||||
uvicorn = "^0.24.0.post1"
|
|
||||||
|
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user