diff --git a/elk/docker-compose.yml b/elk/docker-compose.yml index b1e1e1a1..e77b97ac 100644 --- a/elk/docker-compose.yml +++ b/elk/docker-compose.yml @@ -2,14 +2,14 @@ version: "2" services: elasticsearch: - image: elasticsearch + image: elasticsearch:2 # If you need to access ES directly, just uncomment those lines. #ports: # - "9200:9200" # - "9300:9300" logstash: - image: logstash + image: logstash:2 command: | -e ' input { @@ -47,7 +47,7 @@ services: - "12201:12201/udp" kibana: - image: kibana + image: kibana:4 ports: - "5601:5601" environment: diff --git a/slides/containers/Logging.md b/slides/containers/Logging.md index 0fa11d95..ecb24cb2 100644 --- a/slides/containers/Logging.md +++ b/slides/containers/Logging.md @@ -194,9 +194,13 @@ will have equal success with Fluent or other logging stacks!* - We are going to use a Compose file describing the ELK stack. +- The Compose file is in the container.training repository on GitHub. + ```bash -$ cd ~/container.training/stacks -$ docker-compose -f elk.yml up -d +$ git clone https://github.com/jpetazzo/container.training +$ cd container.training +$ cd elk +$ docker-compose up ``` - Let's have a look at the Compose file while it's deploying. diff --git a/stacks/elk.yml b/stacks/elk.yml index d2460b39..ce1edab4 100644 --- a/stacks/elk.yml +++ b/stacks/elk.yml @@ -5,7 +5,7 @@ services: image: elasticsearch:2 logstash: - image: logstash + image: logstash:2 command: | -e ' input {