LoginSignup
0
0

More than 1 year has passed since last update.

[04] EFK (Elasticsearch + Fluentd + Kibana) の構築 ... Dockerコンテナの立ち上げ(Proxyサーバ下)

Last updated at Posted at 2021-08-22

はじめに

前述した「[03] EFK (Elasticsearch + Fluentd + Kibana) の構築 ... Dockerコンテナの立ち上げ(説明あり)」を
Proxy 下で実行する場合の記述である.

ここでは Proxyサーバを「proxy.co.jp:8080」として、変化点を変更形式で記す.

assets/elasticsearch/Dockerfile

elasticsearch のプラグインを追加する場合は、
elasticsearch-plugin コマンドに Proxyサーバとポートを指定してやる必要があった.

 FROM elasticsearch:7.14.0

+## プロキシサーバを使う場合
+ENV http_proxy="http://proxy.co.jp:8080"
+ENV https_proxy="http://proxy.co.jp:8080"

 # 日本語全文検索ができるようにする
-RUN elasticsearch-plugin install analysis-kuromoji
+RUN ES_JAVA_OPTS="-Dhttp.proxyHost=proxy.co.jp -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.co.jp -Dhttps.proxyPort=8080" elasticsearch-plugin install analysis-kuromoji

assets/fluentd2/Dockerfile

 FROM fluent/fluentd:v1.13-1

+## プロキシサーバを使う場合
+ENV http_proxy="http://proxy.co.jp:8080"
+ENV https_proxy="http://proxy.co.jp:8080"

 USER root

 RUN gem install fluent-plugin-elasticsearch

assets/nginx/Dockerfile

 FROM nginx:1.20.0-alpine

+## プロキシサーバを使う場合
+ENV http_proxy="http://proxy.co.jp:8080"  
+ENV https_proxy="http://proxy.co.jp:8080"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0