tutor-discovery/tutordiscovery/patches/local-docker-compose-dev-services
Muhammad Faraz Maqsood 403a5e297d feat: add Elasticsearch support in tutor-discovery (#89)
- 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>
2024-11-29 22:31:39 +05:00

27 lines
724 B
Plaintext

discovery:
environment:
DJANGO_SETTINGS_MODULE: course_discovery.settings.tutor.development
command: ./manage.py runserver 0.0.0.0:8381
stdin_open: true
tty: true
volumes:
- ../../data/discovery/media:/openedx/discovery/course_discovery/media
{%- for mount in iter_mounts(MOUNTS, "discovery") %}
- {{ mount }}
{%- endfor %}
ports:
- "8381:8381"
networks:
default:
aliases:
- "{{ DISCOVERY_HOST }}"
{% if DISCOVERY_RUN_ELASTICSEARCH and is_docker_rootless() %}
elasticsearch:
ulimits:
memlock:
# Fixes error setting rlimits for ready process in rootless docker
soft: 0 # zero means "unset" in the memlock context
hard: 0
{% endif %}