Skip to content

Commit

Permalink
Merge pull request #4 from kazu69/fixed_activate_elasticsearch_container
Browse files Browse the repository at this point in the history
Fixed activate elasticsearch container
  • Loading branch information
kazu69 authored Feb 12, 2017
2 parents f0210d3 + 89d4826 commit 308fac0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,21 @@ docker-compose up -d

```sh
docker-compose ps
Name Command State Ports
-----------------------------------------------------------------------------------------------------
dockerefk_elasticsearch_1 /docker-entrypoint.sh elas ... Up 0.0.0.0:9200->9200/tcp, 9300/tcp
dockerefk_fluentd_1 sh -c /tmp/entrypoint.sh Up 0.0.0.0:24224->24224/tcp
dockerefk_kibana_1 /docker-entrypoint.sh /tmp ... Up 0.0.0.0:5601->5601/tcp
dockerefk_nginx_1 sh -c /tmp/entrypoint.sh Up 443/tcp, 0.0.0.0:80->80/tcp
dockerefk_node_app_1 sh -c /tmp/entrypoint.sh Up 0.0.0.0:8080->8080/tcp
Name Command State Ports
-------------------------------------------------------------------------------------------
elasticsearch /docker-entrypoint.sh elas ... Up 0.0.0.0:9200->9200/tcp, 9300/tcp
fluentd sh -c /tmp/entrypoint.sh Up 0.0.0.0:24224->24224/tcp, 5140/tcp
kibana /docker-entrypoint.sh /tmp ... Up 0.0.0.0:5601->5601/tcp
nginx sh -c /tmp/entrypoint.sh Up 443/tcp, 0.0.0.0:80->80/tcp
node_app sh -c /tmp/entrypoint.sh Up 0.0.0.0:8080->8080/tcp
```

```sh
# open kibana
open http://localhot:5601
open http://127.0.0.1:5601

# if use docker-machine
open http://"$(docker-machine ip dev)":5601
```

If you use docker-toolbox, localhost is docker-machine ip.


6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
elasticsearch:
image: elasticsearch:latest
command: elasticsearch -Des.network.host=0.0.0.0
container_name: elasticsearch
ports:
- '9200:9200'
kibana:
container_name: kibana
build: kibana/
volumes:
- ./kibana/config/kibana.yml:/opt/kibana/config/kibana.yml
Expand All @@ -12,6 +13,7 @@ kibana:
links:
- elasticsearch
fluentd:
container_name: fluentd
build: fluentd/
volumes:
- /var/lib/docker/containers:/var/lib/docker/containers
Expand All @@ -20,6 +22,7 @@ fluentd:
ports:
- '24224:24224'
nginx:
container_name: nginx
build: nginx/
links:
- fluentd
Expand All @@ -31,6 +34,7 @@ nginx:
fluentd-address: localhost:24224
tag: docker.{{.FullID}}
node_app:
container_name: node_app
build: node_app/
links:
- fluentd
Expand Down

0 comments on commit 308fac0

Please sign in to comment.