DockerのKibana日本語化


AWS Workspaces (Amazon Linux2)
Elasticsearch 7.5.1
Kibana 7.5.1

docker-compose.ymlの環境変数に書く方法

environmentに「- "I18N_LOCALE=ja-JP"」を書く

docker-compose.yml
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.ymlに書く方法

kibana.ymlに「i18n.locale: ja-JP」を書く

docker-compose.yml
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

Running Kibana on Docker
Configuring Kibana

kibana.yml
server.name: kibana
server.host: "0"
elasticsearch.hosts: [ "http://elasticsearch:9200" ]
xpack.monitoring.ui.container.elasticsearch.enabled: true
i18n.locale: ja-JP