Skip to content

Commit

Permalink
Add Elasticsearch 8
Browse files Browse the repository at this point in the history
  • Loading branch information
mischabraam committed Jan 27, 2024
1 parent a9520e6 commit e34b30b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Here are a few key differences compared to the original Valet:
- Rabbitmq (on/off mode)
- Xdebug (on/off mode)
- Memcache (on/off mode)
- Elasticsearch v6, v7, ~~v8~~ (on/off mode) using Docker
- Elasticsearch v6, v7, v8 (on/off mode) using Docker
- Opensearch (on/off mode)
- ~~Ioncube~~
- Rewrite/unrewrite public domain to local environment
Expand Down
4 changes: 2 additions & 2 deletions cli/ValetPlus/Elasticsearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class Elasticsearch extends AbstractDockerService
/** @var string */
protected const ES_DEFAULT_VERSION = 'opensearch'; // which is v2 in Brew, @todo; maybe support v1.2 using docker?
/** @var string[] */
protected const ES_SUPPORTED_VERSIONS = ['opensearch', 'elasticsearch6', 'elasticsearch7'];
protected const ES_SUPPORTED_VERSIONS = ['opensearch', 'elasticsearch6', 'elasticsearch7', 'elasticsearch8'];
/** @var string[] */
protected const ES_DOCKER_VERSIONS = ['elasticsearch6', 'elasticsearch7'];
protected const ES_DOCKER_VERSIONS = ['elasticsearch6', 'elasticsearch7', 'elasticsearch8'];
/** @var string[] */
protected const ES_EOL_VERSIONS = ['elasticsearch@6'];

Expand Down
16 changes: 16 additions & 0 deletions cli/stubs/elasticsearch/elasticsearch8/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.0
container_name: elasticsearch8
ports:
- 9200:9200
- 9300:9300
environment:
- discovery.type=single-node
- xpack.security.enabled=false
volumes:
- esdata:/usr/share/elasticsearch/data
volumes:
esdata:
driver: local

0 comments on commit e34b30b

Please sign in to comment.