将Docker中的Kibana进行日语化
AWS工作空间(亚马逊Linux2)
Elasticsearch 7.5.1
Kibana 7.5.1
将环境变量写入docker-compose.yml文件的方法
在环境变量中写入”- “I18N_LOCALE=ja-JP”
version: '3.7'
volumes:
elastic:
driver: 'local'
services:
elasticsearch:
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.5.1
ports:
- "9200:9200"
- "9300:9300"
environment:
- "ES_JAVA_OPTS=-Xms128m -Xms128m"
- "discovery.type=single-node"
volumes:
- elastic:/usr/share/elasticsearch/data
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:7.5.1
ports:
- "5601:5601"
depends_on:
- elasticsearch
environment:
- "ELASTICSEARCH_URL=http://elasticsearch:9200"
- "I18N_LOCALE=ja-JP"
在Kibana中写入kibana.yml的方法
在 kibana.yml 文件中写入「i18n.locale: ja-JP」
version: '3.7'
volumes:
elastic:
driver: 'local'
services:
elasticsearch:
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.5.1
ports:
- "9200:9200"
- "9300:9300"
environment:
- "ES_JAVA_OPTS=-Xms128m -Xms128m"
- "discovery.type=single-node"
volumes:
- elastic:/usr/share/elasticsearch/data
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:7.5.1
ports:
- "5601:5601"
depends_on:
- elasticsearch
environment:
- "ELASTICSEARCH_URL=http://elasticsearch:9200"
volumes:
- ./kibana.yml:/usr/share/kibana/config/kibana.yml
在Docker上运行Kibana
配置Kibana
server.name: kibana
server.host: "0"
elasticsearch.hosts: [ "http://elasticsearch:9200" ]
xpack.monitoring.ui.container.elasticsearch.enabled: true
i18n.locale: ja-JP