Skip to content

Commit 8c392e9

Browse files
committed
Support ElasticSearch Container.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent 53b0507 commit 8c392e9

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,18 @@ services:
272272
links:
273273
- postgres
274274

275+
### ElasticSearch Container ##################################
276+
277+
elasticsearch:
278+
build: ./elasticsearch
279+
volumes_from:
280+
- volumes_data
281+
ports:
282+
- "9200:9200"
283+
- "9300:9300"
284+
links:
285+
- php-fpm
286+
275287
### Laravel Application Code Container ######################
276288

277289
volumes_source:
@@ -295,5 +307,6 @@ services:
295307
- ./data/mongo:/data/db
296308
- ./data/aerospike:/opt/aerospike/data
297309
- ./data/sessions:/sessions
310+
- ./data/elasticsearch/data:/usr/share/elasticsearch/data
298311

299312
### Add more Containers below ###############################

elasticsearch/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM elasticsearch:latest
2+
3+
MAINTAINER Bo-Yi Wu <appleboy.tw@gmail.com>
4+
5+
EXPOSE 9200 9300

0 commit comments

Comments
 (0)