34 lines
928 B
YAML
34 lines
928 B
YAML
version: "3.7"
|
|
|
|
services:
|
|
kibana:
|
|
image: harbor.colben.cn/general/kibana:7
|
|
container_name: kibana
|
|
restart: "on-failure"
|
|
stop_grace_period: 1m
|
|
environment:
|
|
_CONF_server.port: 5601
|
|
_CONF_server.host: 127.0.0.1
|
|
_CONF_server.name: kibana
|
|
_CONF_elasticsearch.hosts: '["http://127.0.1.1:9200","http://127.0.1.2:9200","http://127.0.1.3:9200"]'
|
|
_CONF_elasticsearch.username: kibana_system
|
|
_CONF_elasticsearch.password: Pass_1234
|
|
network_mode: host
|
|
volumes:
|
|
- type: bind
|
|
source: ./kibana/config
|
|
target: /opt/kibana/config
|
|
- type: bind
|
|
source: ./kibana/data
|
|
target: /opt/kibana/data
|
|
- type: bind
|
|
source: ./kibana/logs
|
|
target: /opt/kibana/logs
|
|
- type: bind
|
|
source: ./kibana/plugins
|
|
target: /opt/kibana/plugins
|
|
- type: bind
|
|
source: ./kibana/offline-plugins
|
|
target: /opt/kibana/offline-plugins
|
|
|