Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported config option for services: 'index' #4

Closed
allenday opened this issue Sep 5, 2018 · 6 comments
Closed

Unsupported config option for services: 'index' #4

allenday opened this issue Sep 5, 2018 · 6 comments
Assignees

Comments

@allenday
Copy link

allenday commented Sep 5, 2018

ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services: 'index'

@sunsided
Copy link
Owner

sunsided commented Sep 5, 2018

Which version of Docker Compose are you using?

@sunsided sunsided self-assigned this Sep 5, 2018
@allenday
Copy link
Author

allenday commented Sep 5, 2018 via email

@sunsided
Copy link
Owner

sunsided commented Sep 5, 2018

This might be related to the data directory access rights. If it exists, try removing it first.
I just stumbled upon a similar problem, while being at it, upgraded the repo to newer versions of the components - could you try if it works now?

docker-compose up --build --force-recreate

@allenday
Copy link
Author

allenday commented Sep 6, 2018

not sure if this is a related issue, but I noticed the index service was crashing. on the host system running sysctl -w vm.max_map_count=262144 solved the problem (and correpsonding edit to /etc/sysctl.conf

@allenday
Copy link
Author

allenday commented Sep 6, 2018

also, chmod -R 777 data

@sunsided
Copy link
Owner

sunsided commented Sep 6, 2018

The index crashing should be solved with this block in the definition, specifically the user property:

index:
    image: docker.elastic.co/elasticsearch/elasticsearch:6.4.0
    ports:
     - "9200:9200"
     - "9300:9300"
    user: "1000"
    volumes:
     - ./data/elasticsearch/data:/usr/share/elasticsearch/data

I also forced the directories to exist on the repo in the first place, so there should be no need to re-own them every now and then.

@sunsided sunsided closed this as completed Oct 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants