mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
add kibana to development toolbox
This commit is contained in:
parent
0b81f957ef
commit
40903721fa
@ -9,6 +9,7 @@ This document will guide you through all the steps needed to set up a developmen
|
||||
3. [ElasticSearch](#elasticsearch)<br/>
|
||||
3.1. [Rebuild statistics](#rebuild-stats)<br/>
|
||||
3.2. [Backup and Restore](#backup-and-restore-elasticsearch)
|
||||
3.3. [Debugging](debugging-elasticsearch)
|
||||
|
||||
This procedure is not easy to follow so if you don't need to write some code for Fab-manager, please prefer the [production installation method](doc/production_readme.md).
|
||||
|
||||
@ -180,3 +181,9 @@ To backup and restore the ElasticSearch database, use the [elasticsearch-dump](h
|
||||
|
||||
Dump the database with: `elasticdump --input=http://localhost:9200/stats --output=fablab_stats.json`.
|
||||
Restore it with: `elasticdump --input=fablab_stats.json --output=http://localhost:9200/stats`.
|
||||
|
||||
|
||||
<a name="debugging-elasticsearch"></a>
|
||||
### Debugging
|
||||
|
||||
In development, visit http://fabmanager-kibana:5601 to use Kibana, the web UI for ElasticSearch
|
@ -38,6 +38,19 @@ services:
|
||||
# - "9200:9200"
|
||||
# - "9300:9300"
|
||||
|
||||
kibana:
|
||||
image: kibana:5.6
|
||||
environment:
|
||||
ELASTICSEARCH_HOSTS: http://fabmanager-elastic:9200
|
||||
restart: always
|
||||
## linux
|
||||
networks:
|
||||
fabmanager:
|
||||
ipv4_address: 172.18.0.5
|
||||
## osx
|
||||
#ports:
|
||||
# - "5601:5601"
|
||||
|
||||
redis:
|
||||
image: redis:5
|
||||
volumes:
|
||||
|
@ -1,10 +1,12 @@
|
||||
## == fab-manager ==
|
||||
## linux
|
||||
172.18.0.5 fabmanager-kibana
|
||||
172.18.0.4 fabmanager-redis
|
||||
172.18.0.3 fabmanager-elastic
|
||||
172.18.0.2 fabmanager-postgres
|
||||
|
||||
## osx
|
||||
# 127.0.0.1 fabmanager-kibana
|
||||
# 127.0.0.1 fabmanager-redis
|
||||
# 127.0.0.1 fabmanager-elastic
|
||||
# 127.0.0.1 fabmanager-postgres
|
||||
|
Loading…
x
Reference in New Issue
Block a user