Skip to content

Instantly share code, notes, and snippets.

@nagstaku

nagstaku/.env Secret

Created August 20, 2019 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nagstaku/803d98c09a017b36860408f2f26d2859 to your computer and use it in GitHub Desktop.
Save nagstaku/803d98c09a017b36860408f2f26d2859 to your computer and use it in GitHub Desktop.
generic elasticsearch + kibana docker compose file
ELK_VERSION=7.3.0
version: '3.5'
services:
elasticsearch:
container_name: 'elasticsearch'
build:
context: elasticsearch/
args:
ELK_VERSION: $ELK_VERSION
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
kibana:
container_name: 'kibana'
build:
context: kibana/
args:
ELK_VERSION: $ELK_VERSION
volumes:
- ./kibana/config/:/usr/share/kibana/config:ro
ports:
- "5601:5601"
depends_on:
- elasticsearch
# https://github.com/elastic/elasticsearch-docker
ARG ELK_VERSION
FROM elasticsearch:${ELK_VERSION}
# Add your elasticsearch plugins setup here
# Example: RUN elasticsearch-plugin install analysis-icu
ARG ELK_VERSION
# https://github.com/elastic/kibana-docker
FROM kibana:${ELK_VERSION}
# Add your kibana plugins setup here
# Example: RUN kibana-plugin install <name|url>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment