wunderio / drupal-project

Wunder's template for Drupal projects designed to work automatically with Lando, CircleCI and Helm.
GNU General Public License v2.0
35 stars 6 forks source link

Mounting `my_elasticsearch.yml` to extend the default config is currently broken #255

Closed tormi closed 2 years ago

tormi commented 2 years ago

Tested elasticsearch:7.16.2 with Lando 3.6.1 & current config. Mounting my_elasticsearch.yml to extend* the default config is currently broken due to permission issus.

services:
  elasticsearch:
    type: "elasticsearch:7.16.2"
    # Replace `true` with `9200` for proxy http://localhost:9200.
    portforward: 9200
    overrides:
      environment:
        ELASTICSEARCH_HEAP_SIZE: 1024m
        # Comma, semi-colon or space separated list of plugins to install at initialization.
        ELASTICSEARCH_PLUGINS: analysis-icu
      volumes:
        # Extend the default configuration with custom settings like
        # allowing CORS requests at `.lando/my_elasticsearch.yml`.
        # @see: https://github.com/bitnami/bitnami-docker-elasticsearch#configuration-file.
        - "./.lando/my_elasticsearch.yml:/opt/bitnami/elasticsearch/config/my_elasticsearch.yml"

*- https://github.com/bitnami/bitnami-docker-elasticsearch#configuration-file

tormi commented 2 years ago

Temp solution is to disable - "./.lando/my_elasticsearch.yml:/opt/bitnami/elasticsearch/config/my_elasticsearch.yml".