Bump Elasticsearch and Kibana to v8 (#710)
* Bump Elasticsearch and Kibana to v8 * Added `SERVER_PUBLICBASEURL`
This commit is contained in:
parent
228ebe329d
commit
086ccdb2ac
|
|
@ -6,47 +6,35 @@ services:
|
||||||
- $$cap_appname-elasticsearch-data:/usr/share/elasticsearch/data
|
- $$cap_appname-elasticsearch-data:/usr/share/elasticsearch/data
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
ES_JAVA_OPTS: -Xms512m -Xmx512m
|
CLI_JAVA_OPTS: -Xms512m -Xmx512m
|
||||||
cluster.name: $$cap_elasticsearch_cluster_name
|
cluster.name: $$cap_elasticsearch_cluster_name
|
||||||
cluster.initial_master_nodes: $$cap_elasticsearch_cluster_initial_master_nodes
|
discovery.type: $$cap_elasticsearch_discovery_type
|
||||||
http.port: $$cap_container_port
|
http.port: $$cap_container_port
|
||||||
node.name: $$cap_appname
|
node.name: $$cap_appname
|
||||||
node.master: $$cap_elasticsearch_node_master
|
xpack.security.enabled: $$cap_elasticsearch_security_enabled
|
||||||
node.data: $$cap_elasticsearch_node_data
|
|
||||||
discovery.seed_hosts: $$cap_elasticsearch_discovery_seed_hosts
|
|
||||||
caproverExtra:
|
caproverExtra:
|
||||||
containerHttpPort: $$cap_container_port
|
containerHttpPort: $$cap_container_port
|
||||||
caproverOneClickApp:
|
caproverOneClickApp:
|
||||||
variables:
|
variables:
|
||||||
- id: $$cap_elasticsearch_version
|
- id: $$cap_elasticsearch_version
|
||||||
label: 'Elasticsearch Version Tag '
|
label: 'Elasticsearch Version Tag'
|
||||||
description: 'Check out the releases overview: https://www.elastic.co/de/downloads/elasticsearch'
|
description: 'Check out the releases overview: https://hub.docker.com/_/elasticsearch'
|
||||||
defaultValue: 7.8.0
|
defaultValue: 8.4.1
|
||||||
validRegex: /^([^\s^\/])+$/
|
validRegex: /^([^\s^\/])+$/
|
||||||
- id: $$cap_elasticsearch_cluster_name
|
- id: $$cap_elasticsearch_cluster_name
|
||||||
label: Cluster Name
|
label: Cluster Name
|
||||||
description: Only nodes within the same cluster name can be combined
|
description: Only nodes within the same cluster name can be combined
|
||||||
defaultValue: elasticsearch-cluster
|
defaultValue: elasticsearch-cluster
|
||||||
validRegex: /^([^\s^\/])+$/
|
validRegex: /^([^\s^\/])+$/
|
||||||
- id: $$cap_elasticsearch_cluster_initial_master_nodes
|
- id: $$cap_elasticsearch_discovery_type
|
||||||
label: Cluster Initial Master Nodes
|
label: Discovery Type
|
||||||
description: Nodes to be used as master nodes. If this is the master node, put the 'App Name' selected above
|
description: Discovery type, for a single node cluster use `single-node`, otherwise `multi-node`
|
||||||
defaultValue: ''
|
defaultValue: single-node
|
||||||
validRegex: /^([^\s^\/])+$/
|
validRegex: /^([^\s^\/])+$/
|
||||||
- id: $$cap_elasticsearch_node_data
|
- id: $$cap_elasticsearch_security_enabled
|
||||||
label: Node Data
|
label: Security Enabled
|
||||||
description: Should the node used for storing data? (true / false)
|
defaultValue: 'false'
|
||||||
defaultValue: 'true'
|
description: 'When you enable this option, Elasticsearch will create a random password (see startup logs) for the `elastic` user and create SSL certificates required for authentication. It is recommended to leave this off for a quick setup. Warning: make sure to enable HTTP Basic Auth in CapRover!'
|
||||||
validRegex: /^([^\s^\/])+$/
|
|
||||||
- id: $$cap_elasticsearch_node_master
|
|
||||||
label: Node Master
|
|
||||||
description: Define node as master-eligible (usual first node TRUE, others FALSE).
|
|
||||||
defaultValue: 'true'
|
|
||||||
validRegex: /^([^\s^\/])+$/
|
|
||||||
- id: $$cap_elasticsearch_discovery_seed_hosts
|
|
||||||
label: Discovery seed hosts
|
|
||||||
defaultValue: srv-captain--XXX
|
|
||||||
description: Domains to start the discovery of other nodes
|
|
||||||
validRegex: /^([^\s^\/])+$/
|
validRegex: /^([^\s^\/])+$/
|
||||||
- id: $$cap_container_port
|
- id: $$cap_container_port
|
||||||
label: Container TCP Port
|
label: Container TCP Port
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ services:
|
||||||
KIBANA_DEFAULTAPPID: $$cap_KIBANA_DEFAULTAPPID
|
KIBANA_DEFAULTAPPID: $$cap_KIBANA_DEFAULTAPPID
|
||||||
MONITORING_ENABLED: $$cap_MONITORING_ENABLED
|
MONITORING_ENABLED: $$cap_MONITORING_ENABLED
|
||||||
ELASTICSEARCH_HOSTS: $$cap_ELASTICSEARCH_HOSTS
|
ELASTICSEARCH_HOSTS: $$cap_ELASTICSEARCH_HOSTS
|
||||||
|
SERVER_PUBLICBASEURL: $$cap_SERVER_PUBLICBASEURL
|
||||||
image: docker.elastic.co/kibana/kibana:$$cap_version
|
image: docker.elastic.co/kibana/kibana:$$cap_version
|
||||||
restart: always
|
restart: always
|
||||||
caproverExtra:
|
caproverExtra:
|
||||||
|
|
@ -13,8 +14,8 @@ services:
|
||||||
caproverOneClickApp:
|
caproverOneClickApp:
|
||||||
variables:
|
variables:
|
||||||
- label: Kibana version
|
- label: Kibana version
|
||||||
defaultValue: 7.8.0
|
defaultValue: 8.4.1
|
||||||
description: It's highly recommended that you don't use the latest tag but instead the major version you need.
|
description: It's highly recommended that you don't use the latest tag but instead the major version you need. See https://hub.docker.com/_/kibana for a list of versions.
|
||||||
id: $$cap_version
|
id: $$cap_version
|
||||||
- label: Default App id
|
- label: Default App id
|
||||||
defaultValue: home
|
defaultValue: home
|
||||||
|
|
@ -25,8 +26,12 @@ caproverOneClickApp:
|
||||||
defaultValue: 'true'
|
defaultValue: 'true'
|
||||||
id: $$cap_MONITORING_ENABLED
|
id: $$cap_MONITORING_ENABLED
|
||||||
- label: ELASTICSEARCH_HOSTS
|
- label: ELASTICSEARCH_HOSTS
|
||||||
description: URL of the elasticsearch hosts to use. Please include the http or https in the urls. eg. http://srv-captain--elastic
|
description: URL of the elasticsearch hosts to use. Please include the http or https in the urls. eg. http://srv-captain--elastic:9200
|
||||||
id: $$cap_ELASTICSEARCH_HOSTS
|
id: $$cap_ELASTICSEARCH_HOSTS
|
||||||
|
- label: SERVER_PUBLICBASEURL
|
||||||
|
defaultValue: http://$$cap_appname.$$cap_root_domain
|
||||||
|
description: The public URL of the Kibana app. Make sure to change this if you force HTTPS-only!
|
||||||
|
id: $$cap_SERVER_PUBLICBASEURL
|
||||||
instructions:
|
instructions:
|
||||||
end: >-
|
end: >-
|
||||||
That's it! If you get a 502 it might mean that kibana cannot find your elasticsearch instance. Please recheck your configs.
|
That's it! If you get a 502 it might mean that kibana cannot find your elasticsearch instance. Please recheck your configs.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue