forked from coop-cloud/hometown
I realised although I had created compose.elasticsearch.yml I had only moved the env vars into it, not the actual service. Now moved the service and the volume :) I haven't tried it, but will do soon for bath.social... Co-authored-by: Nick Sellen <git@nicksellen.co.uk> Reviewed-on: coop-cloud/hometown#15
34 lines
606 B
YAML
34 lines
606 B
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
es:
|
|
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
|
|
environment:
|
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
- "cluster.name=es-mastodon"
|
|
- "discovery.type=single-node"
|
|
- "bootstrap.memory_lock=true"
|
|
networks:
|
|
- internal_network
|
|
volumes:
|
|
- es:/usr/share/elasticsearch/data
|
|
ulimits:
|
|
memlock:
|
|
soft: -1
|
|
hard: -1
|
|
|
|
app:
|
|
environment: &es-env
|
|
- ES_ENABLED=true
|
|
- ES_HOST
|
|
- ES_PORT
|
|
|
|
streaming:
|
|
environment: *es-env
|
|
|
|
sidekiq:
|
|
environment: *es-env
|
|
|
|
volumes:
|
|
es: |