- As Tutor and Open edX have shifted to Meilisearch, and course-discovery still depends on Elasticsearch, running the Elasticsearch container with tutor-discovery will facilitate smoother operation for the course-discovery service. - It's related PR from tutor: overhangio/tutor#1141. Co-authored-by: Muhammad Faraz Maqsood <faraz.maqsood@192.168.10.123>
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
discovery:
|
|
image: {{ DISCOVERY_DOCKER_IMAGE }}
|
|
environment:
|
|
DJANGO_SETTINGS_MODULE: course_discovery.settings.tutor.production
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ../plugins/discovery/apps/settings/tutor:/openedx/discovery/course_discovery/settings/tutor:ro
|
|
- ../../data/discovery/media:/openedx/discovery/course_discovery/media
|
|
{% if DISCOVERY_RUN_ELASTICSEARCH %}- ../../data/elasticsearch:/mounts/elasticsearch{% endif %}
|
|
depends_on:
|
|
- lms
|
|
{% if RUN_MYSQL %}- mysql{% endif %}
|
|
{% if DISCOVERY_RUN_ELASTICSEARCH %}- elasticsearch{% endif %}
|
|
|
|
{% if DISCOVERY_RUN_ELASTICSEARCH -%}
|
|
elasticsearch:
|
|
image: {{ DISCOVERY_DOCKER_IMAGE_ELASTICSEARCH }}
|
|
environment:
|
|
- cluster.name=openedx
|
|
- bootstrap.memory_lock=true
|
|
- discovery.type=single-node
|
|
- "ES_JAVA_OPTS=-Xms{{ DISCOVERY_ELASTICSEARCH_HEAP_SIZE }} -Xmx{{ DISCOVERY_ELASTICSEARCH_HEAP_SIZE }}"
|
|
ulimits:
|
|
memlock:
|
|
soft: -1
|
|
hard: -1
|
|
restart: unless-stopped
|
|
user: "1000:1000"
|
|
volumes:
|
|
- ../../data/elasticsearch:/usr/share/elasticsearch/data
|
|
depends_on:
|
|
- permissions
|
|
{%- endif %}
|