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' | |
services: | |
mongo_1: | |
container_name: mongo_1 | |
image: 'bitnami/mongodb:latest' | |
environment: | |
- MONGODB_REPLICA_SET_MODE=primary | |
ports: | |
- "30001:27017" |
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
docker run --name my_mongo -d mongo |
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
#!/bin/bash | |
#map folder to logstash: | |
# > pipeline | |
# > input files | |
mkdir /tmp/input | |
rm -rf /tmp/input/* | |
mkdir /tmp/pipeline &&\ |
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
#!/bin/sh | |
#Set virtual memory | |
sudo sysctl -w vm.max_map_count=262144 | |
#Get the docker-compose.yml | |
wget https://gist.githubusercontent.com/mosheka/4122218b8a32f9213c48c1c999c214e8/raw/54591b6d692a3b3fefd13c77a1fcf5640e4e3ddc/docker-compose.yml | |
#Start it | |
sudo docker-compose up |
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: '2' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:5.4.2 | |
environment: | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
ulimits: | |
memlock: |