├── config └── movies-config.json ├── data └── movies-10.txt └── install ├── cerebro ├── Dockerfile └── conf │ └── application.conf ├── configure.sh ├── docker-compose-elastic-cluster.yml └── docker-compose-elastic-node.yml /config/movies-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "settings" : { 3 | "number_of_shards" : 2, 4 | "number_of_replicas" : 0, 5 | "index": { 6 | "analysis": { 7 | "filter": { 8 | "english_stop": { 9 | "type": "stop", 10 | "stopwords": "_english_" 11 | }, 12 | "english_stemmer": { 13 | "type": "stemmer", 14 | "language": "english" 15 | }, 16 | "english_synonyms" : { 17 | "type" : "synonym", 18 | "synonyms" : ["schwarzenegger, schwarzeneger, chuache"] 19 | } 20 | }, 21 | "normalizer": { 22 | "lowercase": { "type": "custom", "filter": ["lowercase"] } 23 | }, 24 | "analyzer": { 25 | "lowercase": { 26 | "tokenizer": "keyword", 27 | "filter": ["lowercase"] 28 | }, 29 | "english": { 30 | "tokenizer": "standard", 31 | "filter": [ 32 | "lowercase", 33 | "english_stop", 34 | "english_stemmer" 35 | ] 36 | }, 37 | "english_with_synonyms": { 38 | "tokenizer": "standard", 39 | "filter": [ 40 | "lowercase", 41 | "english_stop", 42 | "english_synonyms", 43 | "english_stemmer" 44 | ] 45 | } 46 | } 47 | } 48 | } 49 | }, 50 | "mappings": { 51 | "movie": { 52 | "dynamic" : "false", 53 | "properties": { 54 | 55 | "title": { 56 | "type": "text", 57 | "fields": { 58 | "english": { 59 | "type" : "text", 60 | "analyzer": "english", 61 | "search_analyzer": "english_with_synonyms" 62 | }, 63 | "normalized": { 64 | "type" : "keyword", 65 | "normalizer": "lowercase" 66 | }, 67 | "raw": { "type" : "keyword" } 68 | } 69 | }, 70 | 71 | "year": { 72 | "type": "integer", 73 | "fields": { 74 | "text": { 75 | "type" : "text" 76 | } 77 | } 78 | }, 79 | 80 | "rated": {"type" : "keyword" }, 81 | 82 | "released": {"type": "date", "format": "yyyy-MM-dd'T'HH:mm:ssZ||yyyy-MM-dd", "locale": "en-US" }, 83 | 84 | "runtime": {"type" : "keyword" }, 85 | 86 | "genre": { 87 | "type": "text", 88 | "fields": { 89 | "english": { 90 | "type" : "text", 91 | "analyzer": "english", 92 | "search_analyzer": "english_with_synonyms" 93 | }, 94 | "normalized": { 95 | "type" : "keyword", 96 | "normalizer": "lowercase" 97 | }, 98 | "raw": { "type" : "keyword" } 99 | } 100 | }, 101 | 102 | "director": { 103 | "type": "text", 104 | "fields": { 105 | "english": { 106 | "type" : "text", 107 | "analyzer": "english", 108 | "search_analyzer": "english_with_synonyms" 109 | }, 110 | "normalized": { 111 | "type" : "keyword", 112 | "normalizer": "lowercase" 113 | }, 114 | "raw": { "type" : "keyword" } 115 | } 116 | }, 117 | 118 | "writers": { 119 | "type": "text", 120 | "fields": { 121 | "english": { 122 | "type" : "text", 123 | "analyzer": "english", 124 | "search_analyzer": "english_with_synonyms" 125 | }, 126 | "normalized": { 127 | "type" : "keyword", 128 | "normalizer": "lowercase" 129 | }, 130 | "raw": { "type" : "keyword" } 131 | } 132 | }, 133 | 134 | "actors": { 135 | "type": "text", 136 | "fields": { 137 | "english": { 138 | "type" : "text", 139 | "analyzer": "english", 140 | "search_analyzer": "english_with_synonyms" 141 | }, 142 | "normalized": { 143 | "type" : "keyword", 144 | "normalizer": "lowercase" 145 | }, 146 | "raw": { "type" : "keyword" } 147 | } 148 | }, 149 | 150 | "plot": { 151 | "type": "text", 152 | "fielddata": true, 153 | "fields": { 154 | "english": { 155 | "type" : "text", 156 | "analyzer": "english", 157 | "search_analyzer": "english_with_synonyms" 158 | }, 159 | "normalized": { 160 | "type" : "keyword", 161 | "normalizer": "lowercase" 162 | }, 163 | "raw": { "type" : "keyword" } 164 | } 165 | }, 166 | 167 | "language": { 168 | "type": "text", 169 | "fields": { 170 | "english": { 171 | "type" : "text", 172 | "analyzer": "english", 173 | "search_analyzer": "english_with_synonyms" 174 | }, 175 | "normalized": { 176 | "type" : "keyword", 177 | "normalizer": "lowercase" 178 | }, 179 | "raw": { "type" : "keyword" } 180 | } 181 | }, 182 | 183 | "country": { 184 | "type": "text", 185 | "fields": { 186 | "english": { 187 | "type" : "text", 188 | "analyzer": "english", 189 | "search_analyzer": "english_with_synonyms" 190 | }, 191 | "normalized": { 192 | "type" : "keyword", 193 | "normalizer": "lowercase" 194 | }, 195 | "raw": { "type" : "keyword" } 196 | } 197 | }, 198 | "countryCode2": { "type" : "keyword" }, 199 | "countryCode3": { "type" : "keyword" }, 200 | 201 | "awards": { 202 | "type": "text", 203 | "fields": { 204 | "english": { 205 | "type" : "text", 206 | "analyzer": "english", 207 | "search_analyzer": "english_with_synonyms" 208 | }, 209 | "normalized": { 210 | "type" : "keyword", 211 | "normalizer": "lowercase" 212 | }, 213 | "raw": { "type" : "keyword" } 214 | } 215 | }, 216 | 217 | "poster": { "type" : "keyword" }, 218 | 219 | "metascore": {"type": "integer" }, 220 | 221 | "imdbRating" : {"type" : "float"}, 222 | 223 | "imdbVotes" : {"type" : "long"}, 224 | 225 | "imdbID": { "type" : "keyword" }, 226 | 227 | "type": { 228 | "type": "text", 229 | "fields": { 230 | "english": { 231 | "type" : "text", 232 | "analyzer": "english", 233 | "search_analyzer": "english_with_synonyms" 234 | }, 235 | "normalized": { 236 | "type" : "keyword", 237 | "normalizer": "lowercase" 238 | }, 239 | "raw": { "type" : "keyword" } 240 | } 241 | } 242 | } 243 | } 244 | } 245 | } 246 | -------------------------------------------------------------------------------- /data/movies-10.txt: -------------------------------------------------------------------------------- 1 | { "index" : { "_index" : "movies", "_type" : "movie", "_id" : "tt0986233" } } 2 | {"imdbID":"tt0986233","title":"Hunger","plot":"Irish republican Bobby Sands leads the inmates of a Northern Irish prison in a hunger strike.","type":"movie","genre":["Biography","Drama"],"director":["Steve McQueen"],"writers":["Enda Walsh","Steve McQueen"],"actors":["Stuart Graham","Laine Megaw","Brian Milligan","Liam McMahon"],"language":["English","Irish"],"country":["United Kingdom","Ireland"],"countryCode2":["GB","IE"],"countryCode3":["GBR","IRL"],"year":2008,"released":"2008-10-31T00:00:00Z","runtime":"96 min","rated":"Not Rated","awards":"41 wins & 29 nominations.","poster":"http://ia.media-imdb.com/images/M/MV5BMTc4NTQwNjIzNl5BMl5BanBnXkFtZTcwNTg0NjQwMw@@._V1_SX300.jpg","metascore":82,"imdbRating":7.6,"imdbVotes":39489} 3 | { "index" : { "_index" : "movies", "_type" : "movie", "_id" : "tt0260688" } } 4 | {"imdbID":"tt0260688","title":"Ali Zaoua: Prince of the Streets","plot":"Ali, Kwita, Omar and Boubker are street kids. The daily dose of glue sniffing represents their only escape from reality. Since they left Dib and his gang, they have been living on the ...","type":"movie","genre":["Drama","Crime"],"director":["Nabil Ayouch"],"writers":["Nabil Ayouch","Nathalie Saugeon"],"actors":["Mounïm Kbab","Mustapha Hansali","Hicham Moussoune","Abdelhak Zhayra"],"language":["Arabic","French"],"country":["Morocco","Tunisia","France","Belgium","United States of America"],"countryCode2":["MA","TN","FR","BE","US"],"countryCode3":["MAR","TUN","FRA","BEL","USA"],"year":2000,"released":"2000-11-25T00:00:00Z","runtime":"90 min","awards":"20 wins & 2 nominations.","poster":"http://ia.media-imdb.com/images/M/MV5BMTg5Nzg5MTIwOF5BMl5BanBnXkFtZTcwODI2ODc4Mw@@._V1_SX300.jpg","metascore":55,"imdbRating":7.5,"imdbVotes":1701} 5 | { "index" : { "_index" : "movies", "_type" : "movie", "_id" : "tt0245712" } } 6 | {"imdbID":"tt0245712","title":"Amores Perros","plot":"A horrific car accident connects three stories, each involving characters dealing with loss, regret, and life's harsh realities, all in the name of love.","type":"movie","genre":["Drama","Thriller"],"director":["Alejandro González Iñárritu"],"writers":["Guillermo Arriaga"],"actors":["Emilio Echevarría","Gael García Bernal","Goya Toledo","Álvaro Guerrero"],"language":["Spanish"],"country":["Mexico"],"countryCode2":["MX"],"countryCode3":["MEX"],"year":2000,"released":"2000-06-16T00:00:00Z","runtime":"154 min","rated":"R","awards":"Nominated for 1 Oscar. Another 58 wins & 17 nominations.","poster":"http://ia.media-imdb.com/images/M/MV5BMjIyNTA5MzQ5N15BMl5BanBnXkFtZTcwNjIyNTgxMQ@@._V1_SX300.jpg","metascore":83,"imdbRating":8.2,"imdbVotes":137817} 7 | { "index" : { "_index" : "movies", "_type" : "movie", "_id" : "tt0181875" } } 8 | {"imdbID":"tt0181875","title":"Almost Famous","plot":"A high-school boy is given the chance to write a story for Rolling Stone Magazine about an up-and-coming rock band as he accompanies it on their concert tour.","type":"movie","genre":["Drama","Music","Romance"],"director":["Cameron Crowe"],"writers":["Cameron Crowe"],"actors":["Billy Crudup","Frances McDormand","Kate Hudson","Jason Lee"],"language":["English"],"country":["United States of America"],"countryCode2":["US"],"countryCode3":["USA"],"year":2000,"released":"2000-09-13T00:00:00Z","runtime":"122 min","rated":"R","awards":"Won 1 Oscar. Another 57 wins & 92 nominations.","poster":"http://ia.media-imdb.com/images/M/MV5BMTI0MDc0MzIyM15BMl5BanBnXkFtZTYwMzc4NzA5._V1_SX300.jpg","metascore":90,"imdbRating":8.0,"imdbVotes":173665} 9 | { "index" : { "_index" : "movies", "_type" : "movie", "_id" : "tt0144084" } } 10 | {"imdbID":"tt0144084","title":"American Psycho","plot":"A wealthy New York investment banking executive hides his alternate psychopathic ego from his co-workers and friends as he escalates deeper into his illogical, gratuitous fantasies.","type":"movie","genre":["Crime","Drama"],"director":["Mary Harron"],"writers":["Bret Easton Ellis (novel)","Mary Harron (screenplay)","Guinevere Turner (screenplay)"],"actors":["Christian Bale","Justin Theroux","Josh Lucas","Bill Sage"],"language":["English","Spanish","Cantonese"],"country":["United States of America"],"countryCode2":["US"],"countryCode3":["USA"],"year":2000,"released":"2000-04-14T00:00:00Z","runtime":"102 min","rated":"R","awards":"4 wins & 7 nominations.","poster":"http://ia.media-imdb.com/images/M/MV5BMjIyMTYwMTI0N15BMl5BanBnXkFtZTgwNTU2NTYxMTE@._V1_SX300.jpg","metascore":64,"imdbRating":7.6,"imdbVotes":280148} 11 | { "index" : { "_index" : "movies", "_type" : "movie", "_id" : "tt0266308" } } 12 | {"imdbID":"tt0266308","title":"Battle Royale","plot":"In the future, the Japanese government captures a class of ninth-grade students and forces them to kill each other under the revolutionary \"Battle Royale\" act.","type":"movie","genre":["Adventure","Drama","Thriller"],"director":["Kinji Fukasaku"],"writers":["Koushun Takami (novel)","Kenta Fukasaku (screenplay)"],"actors":["Tatsuya Fujiwara","Aki Maeda","Tarô Yamamoto","Takeshi Kitano"],"language":["Japanese"],"country":["Japan"],"countryCode2":["JP"],"countryCode3":["JPN"],"year":2000,"released":"2000-12-16T00:00:00Z","runtime":"114 min","rated":"Not Rated","awards":"7 wins & 8 nominations.","poster":"http://ia.media-imdb.com/images/M/MV5BMTIzODk2NjYzOV5BMl5BanBnXkFtZTYwNjMyMTM5._V1_SX300.jpg","metascore":81,"imdbRating":7.8,"imdbVotes":118273} 13 | { "index" : { "_index" : "movies", "_type" : "movie", "_id" : "tt0249462" } } 14 | {"imdbID":"tt0249462","title":"Billy Elliot","plot":"A talented young boy becomes torn between his unexpected love of dance and the disintegration of his family.","type":"movie","genre":["Comedy","Drama","Music"],"director":["Stephen Daldry"],"writers":["Lee Hall"],"actors":["Jamie Bell","Jean Heywood","Jamie Draven","Gary Lewis"],"language":["English"],"country":["United Kingdom","France"],"countryCode2":["GB","FR"],"countryCode3":["GBR","FRA"],"year":2000,"released":"2000-09-29T00:00:00Z","runtime":"110 min","rated":"PG-13","awards":"Nominated for 3 Oscars. Another 57 wins & 59 nominations.","poster":"http://ia.media-imdb.com/images/M/MV5BMTU0NTg3MzUxOF5BMl5BanBnXkFtZTgwMjcxNjcxMTE@._V1_SX300.jpg","metascore":74,"imdbRating":7.7,"imdbVotes":83305} 15 | { "index" : { "_index" : "movies", "_type" : "movie", "_id" : "tt0162222" } } 16 | {"imdbID":"tt0162222","title":"Cast Away","plot":"A FedEx executive must transform himself physically and emotionally to survive a crash landing on a deserted island.","type":"movie","genre":["Adventure","Drama"],"director":["Robert Zemeckis"],"writers":["William Broyles Jr."],"actors":["Paul Sanchez","Lari White","Leonid Citer","David Allen Brooks"],"language":["English","Russian"],"country":["United States of America"],"countryCode2":["US"],"countryCode3":["USA"],"year":2000,"released":"2000-12-22T00:00:00Z","runtime":"143 min","rated":"PG-13","awards":"Nominated for 2 Oscars. Another 18 wins & 25 nominations.","poster":"http://ia.media-imdb.com/images/M/MV5BMTI2MDY0ODEwNF5BMl5BanBnXkFtZTYwMDI2NTk4._V1_SX300.jpg","metascore":73,"imdbRating":7.7,"imdbVotes":299959} 17 | { "index" : { "_index" : "movies", "_type" : "movie", "_id" : "tt0118852" } } 18 | {"imdbID":"tt0118852","title":"Chinese Coffee","plot":"Harry and Jake, two unsuccessful writers, spend a cathartic evening arguing about money, aesthetics, their friendship, and Harry's new manuscript.","type":"movie","genre":["Drama"],"director":["Al Pacino"],"writers":["Ira Lewis (play)","Ira Lewis (screenplay)"],"actors":["Al Pacino","Jerry Orbach","Susan Floyd","Ellen McElduff"],"language":["English"],"country":["United States of America"],"countryCode2":["US"],"countryCode3":["USA"],"year":2000,"released":"2000-09-02T00:00:00Z","runtime":"99 min","rated":"R","poster":"http://ia.media-imdb.com/images/M/MV5BMTc3MjgxMDMyNF5BMl5BanBnXkFtZTcwODQzOTAzMQ@@._V1_SX300.jpg","imdbRating":7.4,"imdbVotes":2156} 19 | { "index" : { "_index" : "movies", "_type" : "movie", "_id" : "tt0221073" } } 20 | {"imdbID":"tt0221073","title":"Chopper","plot":"Chopper tells the intense story of Mark \"Chopper\" Read, a legendary criminal who wrote his autobiography while serving a jail sentence in prison. His book, \"From the Inside\", upon which the film is based, was a best-seller.","type":"movie","genre":["Biography","Comedy","Crime"],"director":["Andrew Dominik"],"writers":["Mark Brandon Read (books)","Andrew Dominik"],"actors":["Eric Bana","Simon Lyndon","David Field","Dan Wyllie"],"language":["English"],"country":["Australia"],"countryCode2":["AU"],"countryCode3":["AUS"],"year":2000,"released":"2000-08-03T00:00:00Z","runtime":"94 min","rated":"Unrated","awards":"12 wins & 14 nominations.","poster":"http://ia.media-imdb.com/images/M/MV5BNTc5Mzc3Njc4M15BMl5BanBnXkFtZTYwODg1MTA5._V1_SX300.jpg","metascore":65,"imdbRating":7.2,"imdbVotes":28096} 21 | -------------------------------------------------------------------------------- /install/cerebro/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM anapsix/alpine-java 2 | 3 | ENV CEREBRO_VERSION 0.8.1 4 | 5 | # Alpine Certificates 6 | RUN \ 7 | apk update && \ 8 | apk add ca-certificates wget && \ 9 | update-ca-certificates 10 | 11 | # Install Cerebro 12 | WORKDIR /tmp 13 | RUN \ 14 | wget https://github.com/lmenezes/cerebro/releases/download/v$CEREBRO_VERSION/cerebro-$CEREBRO_VERSION.tgz && \ 15 | tar -xvf cerebro-$CEREBRO_VERSION.tgz && \ 16 | rm cerebro-$CEREBRO_VERSION.tgz && \ 17 | mv cerebro-$CEREBRO_VERSION /cerebro 18 | 19 | # Copy config 20 | COPY conf/application.conf /cerebro/conf/application.conf 21 | 22 | # Define default command. 23 | ENTRYPOINT ["/cerebro/bin/cerebro"] 24 | 25 | EXPOSE 9001 9000 26 | -------------------------------------------------------------------------------- /install/cerebro/conf/application.conf: -------------------------------------------------------------------------------- 1 | # Secret will be used to sign session cookies, CSRF tokens and for other encryption utilities. 2 | # It is highly recommended to change this value before running cerebro in production. 3 | secret = "ki:s:[[@=Ag?QI`W2jMwkY:eqvrJ]JqoJyi2axj3ZvOv^/KavOT4ViJSv?6YY4[N" 4 | 5 | # Application base path 6 | basePath = "/" 7 | 8 | # Defaults to RUNNING_PID at the root directory of the app. 9 | # To avoid creating a PID file set this value to /dev/null 10 | #pidfile.path = "/var/run/cerebro.pid" 11 | pidfile.path=/dev/null 12 | 13 | # Rest request history max size per user 14 | rest.history.size = 50 // defaults to 50 if not specified 15 | 16 | # Path of local database file 17 | #data.path: "/var/lib/cerebro/cerebro.db" 18 | data.path = "./cerebro.db" 19 | 20 | # Authentication 21 | auth = { 22 | # Example of LDAP authentication 23 | #type: ldap 24 | #settings: { 25 | #url = "ldap://host:port" 26 | #base-dn = "ou=active,ou=Employee" 27 | #method = "simple" 28 | #user-domain = "domain.com" 29 | #} 30 | # Example of simple username/password authentication 31 | #type: basic 32 | #settings: { 33 | #username = "admin" 34 | #password = "1234" 35 | #} 36 | } 37 | 38 | # A list of known hosts 39 | hosts = [ 40 | { 41 | host = "http://elasticsearch1:9200" 42 | }, 43 | { 44 | host = "http://elasticsearch2:9200" 45 | }, 46 | { 47 | host = "http://elasticsearch3:9200" 48 | }, 49 | { 50 | host = "http://localhost:9200" 51 | } 52 | #{ 53 | # host = "http://localhost:9200" 54 | # name = "Some Cluster" 55 | #}, 56 | # Example of host with authentication 57 | #{ 58 | # host = "http://some-authenticated-host:9200" 59 | # name = "Secured Cluster" 60 | # auth = { 61 | # username = "username" 62 | # password = "secret-password" 63 | # } 64 | #} 65 | ] 66 | -------------------------------------------------------------------------------- /install/configure.sh: -------------------------------------------------------------------------------- 1 | 2 | # generamos la imagen de cerebro (opcional) 3 | cd cerebro 4 | docker build -t cerebro:0.8.1 . 5 | cd .. 6 | 7 | # cambiamos este descriptor del sistema para que funcione elasticsearch 8 | echo "Escribe la contraseña de sudo para ejecutar sysctl -w vm.max_map_count=262144" 9 | sudo sysctl vm.max_map_count=262144 10 | -------------------------------------------------------------------------------- /install/docker-compose-elastic-cluster.yml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | 3 | services: 4 | elasticsearch-workshop-1: 5 | image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4 6 | container_name: elasticsearch-workshop-1 7 | environment: 8 | - "cluster.name=elasticsearch-cluster" # Sets cluster name 9 | - "node.name=elasticsearch1" # Sets node name 10 | - "network.host=0.0.0.0" # Sets binding ip to all 11 | - "xpack.security.enabled=false" # Disables xpack security 12 | - "xpack.monitoring.enabled=false" # Disables xpack monitoring 13 | - "xpack.watcher.enabled=false" # Disables xpack watcher 14 | - "xpack.ml.enabled=false" # Disables xpack machine learning 15 | - "bootstrap.memory_lock=true" # Disables memory swap 16 | - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m" # Sets allocated memory 17 | - "discovery.zen.ping.unicast.hosts=elasticsearch-workshop-1,elasticsearch-workshop-2,elasticsearch-workshop-3" 18 | - "discovery.zen.minimum_master_nodes=2" 19 | ulimits: 20 | memlock: 21 | soft: -1 22 | hard: -1 23 | volumes: 24 | - /data/elasticsearch/workshop/1:/usr/share/elasticsearch/data 25 | ports: 26 | - "9201:9200" 27 | - "9301:9300" 28 | 29 | elasticsearch-workshop-2: 30 | image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4 31 | container_name: elasticsearch-workshop-2 32 | environment: 33 | - "cluster.name=elasticsearch-cluster" # Sets cluster name 34 | - "node.name=elasticsearch2" # Sets node name 35 | - "network.host=0.0.0.0" # Sets binding ip to all 36 | - "xpack.security.enabled=false" # Disables xpack security 37 | - "xpack.monitoring.enabled=false" # Disables xpack monitoring 38 | - "xpack.watcher.enabled=false" # Disables xpack watcher 39 | - "xpack.ml.enabled=false" # Disables xpack machine learning 40 | - "bootstrap.memory_lock=true" # Disables memory swap 41 | - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m" # Sets allocated memory 42 | - "discovery.zen.ping.unicast.hosts=elasticsearch-workshop-1,elasticsearch-workshop-2,elasticsearch-workshop-3" 43 | - "discovery.zen.minimum_master_nodes=2" 44 | ulimits: 45 | memlock: 46 | soft: -1 47 | hard: -1 48 | volumes: 49 | - /data/elasticsearch/workshop/2:/usr/share/elasticsearch/data 50 | ports: 51 | - "9202:9200" 52 | - "9302:9300" 53 | 54 | elasticsearch-workshop-3: 55 | image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4 56 | container_name: elasticsearch-workshop-3 57 | environment: 58 | - "cluster.name=elasticsearch-cluster" # Sets cluster name 59 | - "node.name=elasticsearch3" # Sets node name 60 | - "network.host=0.0.0.0" # Sets binding ip to all 61 | - "xpack.security.enabled=false" # Disables xpack security 62 | - "xpack.monitoring.enabled=false" # Disables xpack monitoring 63 | - "xpack.watcher.enabled=false" # Disables xpack watcher 64 | - "xpack.ml.enabled=false" # Disables xpack machine learning 65 | - "bootstrap.memory_lock=true" # Disables memory swap 66 | - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m" # Sets allocated memory 67 | - "discovery.zen.ping.unicast.hosts=elasticsearch-workshop-1,elasticsearch-workshop-2,elasticsearch-workshop-3" 68 | - "discovery.zen.minimum_master_nodes=2" 69 | ulimits: 70 | memlock: 71 | soft: -1 72 | hard: -1 73 | volumes: 74 | - /data/elasticsearch/workshop/3:/usr/share/elasticsearch/data 75 | ports: 76 | - "9203:9200" 77 | - "9303:9300" 78 | 79 | cerebro: 80 | image: cerebro:0.8.1 81 | container_name: cerebro-workshop 82 | ports: 83 | - "9000:9000" 84 | external_links: 85 | - elasticsearch-workshop-1:elasticsearch1 86 | - elasticsearch-workshop-2:elasticsearch2 87 | - elasticsearch-workshop-3:elasticsearch3 88 | 89 | kibana: 90 | image: docker.elastic.co/kibana/kibana:6.5.4 91 | container_name: kibana-workshop 92 | ports: 93 | - "5601:5601" 94 | external_links: 95 | - elasticsearch-workshop-1:elasticsearch1 96 | environment: 97 | ELASTICSEARCH_URL: http://elasticsearch1:9200 98 | 99 | -------------------------------------------------------------------------------- /install/docker-compose-elastic-node.yml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | 3 | services: 4 | elasticsearch-workshop-1: 5 | image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4 6 | container_name: elasticsearch-workshop-1 7 | environment: 8 | - "cluster.name=elasticsearch-cluster" # Sets cluster name 9 | - "node.name=elasticsearch" # Sets node name 10 | - "network.host=0.0.0.0" # Sets binding ip to all 11 | - "xpack.security.enabled=false" # Disables xpack security 12 | - "xpack.monitoring.enabled=false" # Disables xpack monitoring 13 | - "xpack.watcher.enabled=false" # Disables xpack watcher 14 | - "xpack.ml.enabled=false" # Disables xpack machine learning 15 | - "bootstrap.memory_lock=true" # Disables memory swap 16 | - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m" # Sets allocated memory 17 | ulimits: 18 | memlock: 19 | soft: -1 20 | hard: -1 21 | volumes: 22 | - /data/elasticsearch/workshop/1:/usr/share/elasticsearch/data 23 | ports: 24 | - "9200:9200" 25 | - "9300:9300" 26 | 27 | cerebro: 28 | image: cerebro:0.8.1 29 | container_name: cerebro-workshop 30 | ports: 31 | - "9000:9000" 32 | external_links: 33 | - elasticsearch-workshop-1:elasticsearch1 34 | 35 | kibana: 36 | image: docker.elastic.co/kibana/kibana:6.5.4 37 | container_name: kibana-workshop 38 | ports: 39 | - "5601:5601" 40 | external_links: 41 | - elasticsearch-workshop-1:elasticsearch1 42 | environment: 43 | ELASTICSEARCH_URL: http://elasticsearch1:9200 44 | 45 | --------------------------------------------------------------------------------