diff --git a/docker-compose.yml b/docker-compose.yml index 948e5769..9e68b633 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -272,6 +272,18 @@ services: links: - postgres +### ElasticSearch Container ################################## + + elasticsearch: + build: ./elasticsearch + volumes_from: + - volumes_data + ports: + - "9200:9200" + - "9300:9300" + links: + - php-fpm + ### Laravel Application Code Container ###################### volumes_source: @@ -295,5 +307,6 @@ services: - ./data/mongo:/data/db - ./data/aerospike:/opt/aerospike/data - ./data/sessions:/sessions + - ./data/elasticsearch/data:/usr/share/elasticsearch/data ### Add more Containers below ############################### diff --git a/elasticsearch/Dockerfile b/elasticsearch/Dockerfile new file mode 100644 index 00000000..363932e4 --- /dev/null +++ b/elasticsearch/Dockerfile @@ -0,0 +1,5 @@ +FROM elasticsearch:latest + +MAINTAINER Bo-Yi Wu + +EXPOSE 9200 9300