-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates Elasticsearch quick start by adding DDEV
Added instructions and services files for Elasticsearch DDEV services.
- Loading branch information
Alban Jubert
committed
Jul 4, 2019
1 parent
c3e540d
commit 8d2c8e7
Showing
3 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
version: '3.6' | ||
|
||
services: | ||
|
||
elasticsearch: | ||
build: ./elasticsearch-build | ||
container_name: ddev-${DDEV_SITENAME}-elasticsearch | ||
environment: | ||
- cluster.name=yii2-test-cluster | ||
- bootstrap.memory_lock=true | ||
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | ||
- ELASTIC_PASSWORD=9kMf8NWZRXxV | ||
- VIRTUAL_HOST=$DDEV_HOSTNAME # This defines the host name the service should be accessible from. This will be sitename.ddev.local | ||
- HTTP_EXPOSE=9200 | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
restart: on-failure | ||
volumes: | ||
- es6-data:/usr/share/elasticsearch/data | ||
ports: | ||
- 9200 | ||
labels: | ||
com.ddev.site-name: ${DDEV_SITENAME} | ||
com.ddev.approot: $DDEV_APPROOT | ||
com.ddev.app-url: $DDEV_URL | ||
|
||
|
||
kibana: | ||
image: docker.elastic.co/kibana/kibana:6.1.4 | ||
container_name: ddev-${DDEV_SITENAME}-kibana | ||
environment: | ||
- elasticsearch.password=9kMf8NWZRXxV | ||
- VIRTUAL_HOST=$DDEV_HOSTNAME # This defines the host name the service should be accessible from. This will be sitename.ddev.local | ||
- HTTP_EXPOSE=5601 | ||
ports: | ||
- 5601 | ||
labels: | ||
com.ddev.site-name: ${DDEV_SITENAME} | ||
com.ddev.approot: $DDEV_APPROOT | ||
com.ddev.app-url: $DDEV_URL | ||
|
||
web: | ||
links: | ||
- elasticsearch:$DDEV_HOSTNAME | ||
- kibana:$DDEV_HOSTNAME | ||
|
||
volumes: | ||
es6-data: | ||
driver: local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM docker.elastic.co/elasticsearch/elasticsearch:6.1.4 | ||
|
||
RUN printf "y/n" | bin/elasticsearch-plugin install ingest-attachment |