Created
July 27, 2019 15:28
-
-
Save amejiarosario/5a8cbc16e646171799902c6c3bfe4eba to your computer and use it in GitHub Desktop.
This file contains hidden or 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: '3.7' | |
services: | |
# http://localhost:8187/ | |
nginx: | |
# build: . | |
image: nginx | |
# container_name: nginx | |
ports: | |
- "8187:80" | |
networks: | |
- public | |
volumes: | |
- nginx_logs:/var/log/nginx/ | |
- nginx_public:/usr/share/nginx/html | |
# invalid mount config for type… | |
# - ./public:/usr/share/nginx/html:cached | |
# error: invalid mount config for type "bind": bind source path does not exist: /Users/admejiar/Code/uxer-analytics/events-hub/public" | |
# - type: bind | |
# source: ./public | |
# target: /usr/share/nginx/html | |
filebeat: | |
image: docker.elastic.co/beats/filebeat:${TAG} | |
# container_name: filebeat | |
volumes: | |
- nginx_logs:/var/log/nginx/ | |
# - ./config/filebeat/filebeat.yml:/etc/filebeat/filebeat.yml:ro | |
networks: | |
- stack | |
depends_on: | |
- elasticsearch | |
# http://localhost:5601 | |
kibana: | |
image: docker.elastic.co/kibana/kibana:${TAG} | |
# container_name: kibana | |
ports: | |
- "5601:5601" | |
depends_on: | |
- elasticsearch | |
networks: | |
- stack | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:${TAG} | |
# container_name: elasticsearch | |
ports: | |
- "9200:9200" | |
- "9300:9300" | |
environment: | |
- "discovery.type=single-node" | |
networks: | |
- stack | |
volumes: | |
- elastic_data:/usr/share/elasticsearch/data | |
# - ./private/es_data:/usr/share/elasticsearch/data | |
logstash: | |
image: docker.elastic.co/logstash/logstash:${TAG} | |
# contsainer_name: logstash | |
ports: | |
- "5044:5044" | |
- "9600:9600" | |
depends_on: | |
- elasticsearch | |
networks: | |
- stack | |
configs: | |
- source: logstash.yml | |
target: /usr/share/logstash/config/logstash.yml | |
- source: pipelines.yml | |
target: /usr/share/logstash/config/pipelines.yml | |
- source: logstash.conf | |
target: /usr/share/logstash/pipeline/logstash.conf | |
visualizer: | |
image: dockersamples/visualizer:stable | |
ports: | |
- "8080:8080" | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock" | |
deploy: | |
placement: | |
constraints: [node.role == manager] | |
networks: | |
- public | |
networks: | |
stack: | |
public: | |
volumes: | |
elastic_data: | |
nginx_logs: | |
nginx_public: | |
driver_opts: | |
type: none | |
device: ./public | |
o: bind | |
configs: | |
logstash.yml: | |
file: ./config/logstash/logstash.yml | |
pipelines.yml: | |
file: ./config/logstash/pipelines.yml | |
logstash.conf: | |
file: ./config/logstash/pipelines/logstash.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment