version: '3.3' services: # elastic search. es: image: elasticsearch:7.4.0 ports: - "9200:9200" - "9300:9300" volumes: - es-data:/usr/share/elasticsearch/data - ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml environment: - "ES_JAVA_OPTS=-Xms512m -Xmx512m" volumes: es-data: driver: local