-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
89 additions
and
11 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
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,57 @@ | ||
################################################################################################################ | ||
# Use this file to build from local source. Note you have to 'docker system prune -a' on code changes or 'docker-compose build' | ||
# Sample docker-compose file that will allow for connecting ES and HQ between separate containers | ||
# Note that the container_name (elasticsearch) is used as a default connection url in the HQ settings. | ||
################################################################################################################ | ||
|
||
version: '3' | ||
services: | ||
elastichq: | ||
build: | ||
context: ../ | ||
dockerfile: Dockerfile | ||
container_name: elastichq | ||
environment: | ||
- HQ_DEFAULT_URL=http://elasticsearch:9200 | ||
- HQ_DEBUG=True | ||
# - HQ_ENABLE_SSL=True | ||
# - HQ_VERIFY_CERTS=False | ||
# - HQ_CA_CERTS=/usr/local/share/ca-certificates/MYCA.crt | ||
ports: | ||
- 5000:5000 | ||
networks: | ||
- esnet | ||
|
||
elasticsearch: | ||
image: elasticsearch:2.4.6 | ||
container_name: elasticsearch | ||
environment: | ||
- cluster.name=elasticsearch | ||
- node.name=node_1 | ||
- network.host=0.0.0.0 | ||
- network.publish_host=0.0.0.0 | ||
- bootstrap.memory_lock=true | ||
- http.cors.enabled=true | ||
- http.cors.allow-origin=* | ||
- http.host=0.0.0.0 | ||
- transport.host=0.0.0.0 | ||
- bootstrap.system_call_filter=false | ||
- "ES_JAVA_OPTS=-Xms1g -Xmx1g" | ||
volumes: | ||
- esdata1:/usr/share/elasticsearch/data | ||
ports: | ||
- 9200:9200 | ||
- 9300:9300 | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
networks: | ||
- esnet | ||
|
||
volumes: | ||
esdata1: | ||
driver: local | ||
networks: | ||
esnet: | ||
driver: bridge |