Created
October 13, 2017 04:44
-
-
Save denmerc/93167ad65a10e501543da9598c139127 to your computer and use it in GitHub Desktop.
compose-elastic.yml
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
version: '2' | |
services: | |
elasticsearch: | |
build: elasticsearch/ | |
volumes: | |
- ./config/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml | |
# add rotating log conf | |
- ./config/elasticsearch/logging.yml:/etc/elasticsearch/logging.yml | |
# named data volume | |
- "db-data: /var/lib/elasticsearch | |
ports: | |
- "9200:9200" | |
- "9300:9300" # is this port only for clustering necessary for our scenario | |
environment: | |
ES_JAVA_OPTS: "-Xmx256m -Xms256m" | |
networks: | |
- elk | |
logstash: | |
build: logstash/ | |
volumes: | |
- ./config/logstash/logstash.yml:/usr/share/logstash/config/logstash.yml | |
- ./logstash/pipeline:/usr/share/logstash/pipeline | |
ports: | |
- "5000:5000" | |
environment: | |
LS_JAVA_OPTS: "-Xmx256m -Xms256m" | |
networks: | |
- elk | |
depends_on: | |
- elasticsearch | |
kibana: | |
build: kibana/ | |
volumes: | |
- ./config/kibana/:/usr/share/kibana/config | |
ports: | |
- "5601:5601" | |
networks: | |
- elk | |
depends_on: | |
- elasticsearch | |
operations: | |
#image: denmerc/pxops:v0.1 | |
build: . | |
container_name: pxops | |
environment: | |
- NODE_ENV='production' | |
depends_on: | |
- elasticsearch | |
ports: | |
- "80:8083" | |
networks: | |
elk: | |
driver: bridge | |
volumes: | |
db-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment