File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
version : ' 2.2'
2
2
services :
3
3
es01 :
4
- image : docker.elastic.co/elasticsearch/elasticsearch:{version }
4
+ image : docker.elastic.co/elasticsearch/elasticsearch:${VERSION }
5
5
container_name : es01
6
6
environment :
7
7
- node.name=es01
@@ -22,7 +22,7 @@ services:
22
22
- elastic
23
23
24
24
es02 :
25
- image : docker.elastic.co/elasticsearch/elasticsearch:{version }
25
+ image : docker.elastic.co/elasticsearch/elasticsearch:${VERSION }
26
26
container_name : es02
27
27
environment :
28
28
- node.name=es02
@@ -41,7 +41,7 @@ services:
41
41
- elastic
42
42
43
43
es03 :
44
- image : docker.elastic.co/elasticsearch/elasticsearch:{version }
44
+ image : docker.elastic.co/elasticsearch/elasticsearch:${VERSION }
45
45
container_name : es03
46
46
environment :
47
47
- node.name=es03
@@ -60,7 +60,7 @@ services:
60
60
- elastic
61
61
62
62
kib01 :
63
- image : docker.elastic.co/kibana/kibana:{version }
63
+ image : docker.elastic.co/kibana/kibana:${VERSION }
64
64
container_name : kib01
65
65
ports :
66
66
- 5601:5601
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ the {stack}: https://www.docker.elastic.co/.
11
11
To get the default distributions of {es} and {kib} up and running in Docker,
12
12
you can use Docker Compose.
13
13
14
- . Create a ` docker-compose.yml` file for the Elastic Stack.
14
+ . Create an `.env` and ` docker-compose.yml` file for the Elastic Stack.
15
15
The following example brings up a three node cluster and Kibana so you can see how things work.
16
16
This all-in-one configuration is a handy way to bring up your first dev cluster before
17
17
you build a distributed deployment with multiple hosts.
@@ -22,6 +22,14 @@ so the sample compose file is not yet available for this version.
22
22
See the {stack-gs-current}/get-started-docker.html[current version] for the latest sample files.
23
23
endif::[]
24
24
ifeval::["{release-state}"!="unreleased"]
25
+ `.env`:
26
+ ["source","txt",subs="attributes"]
27
+ ----
28
+ COMPOSE_PROJECT_NAME=es
29
+ VERSION={version}
30
+ ----
31
+
32
+ `.docker-compose.yml`:
25
33
["source","yaml",subs="attributes"]
26
34
--------------------------------------------
27
35
include::docker/docker-compose.yml[]
You can’t perform that action at this time.
0 commit comments