Bump Elasticsearch and Kibana to v8 (#710)

* Bump Elasticsearch and Kibana to v8

* Added `SERVER_PUBLICBASEURL`
This commit is contained in:
Niek van der Maas 2022-09-08 00:29:22 +02:00 committed by GitHub
parent 228ebe329d
commit 086ccdb2ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 29 deletions

View File

@ -6,47 +6,35 @@ services:
- $$cap_appname-elasticsearch-data:/usr/share/elasticsearch/data
restart: always
environment:
ES_JAVA_OPTS: -Xms512m -Xmx512m
CLI_JAVA_OPTS: -Xms512m -Xmx512m
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
node.name: $$cap_appname
node.master: $$cap_elasticsearch_node_master
node.data: $$cap_elasticsearch_node_data
discovery.seed_hosts: $$cap_elasticsearch_discovery_seed_hosts
xpack.security.enabled: $$cap_elasticsearch_security_enabled
caproverExtra:
containerHttpPort: $$cap_container_port
caproverOneClickApp:
variables:
- id: $$cap_elasticsearch_version
label: 'Elasticsearch Version Tag '
description: 'Check out the releases overview: https://www.elastic.co/de/downloads/elasticsearch'
defaultValue: 7.8.0
label: 'Elasticsearch Version Tag'
description: 'Check out the releases overview: https://hub.docker.com/_/elasticsearch'
defaultValue: 8.4.1
validRegex: /^([^\s^\/])+$/
- id: $$cap_elasticsearch_cluster_name
label: Cluster Name
description: Only nodes within the same cluster name can be combined
defaultValue: elasticsearch-cluster
validRegex: /^([^\s^\/])+$/
- id: $$cap_elasticsearch_cluster_initial_master_nodes
label: Cluster Initial Master Nodes
description: Nodes to be used as master nodes. If this is the master node, put the 'App Name' selected above
defaultValue: ''
- id: $$cap_elasticsearch_discovery_type
label: Discovery Type
description: Discovery type, for a single node cluster use `single-node`, otherwise `multi-node`
defaultValue: single-node
validRegex: /^([^\s^\/])+$/
- id: $$cap_elasticsearch_node_data
label: Node Data
description: Should the node used for storing data? (true / false)
defaultValue: 'true'
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
- id: $$cap_elasticsearch_security_enabled
label: Security Enabled
defaultValue: 'false'
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_container_port
label: Container TCP Port

View File

@ -6,6 +6,7 @@ services:
KIBANA_DEFAULTAPPID: $$cap_KIBANA_DEFAULTAPPID
MONITORING_ENABLED: $$cap_MONITORING_ENABLED
ELASTICSEARCH_HOSTS: $$cap_ELASTICSEARCH_HOSTS
SERVER_PUBLICBASEURL: $$cap_SERVER_PUBLICBASEURL
image: docker.elastic.co/kibana/kibana:$$cap_version
restart: always
caproverExtra:
@ -13,8 +14,8 @@ services:
caproverOneClickApp:
variables:
- label: Kibana version
defaultValue: 7.8.0
description: It's highly recommended that you don't use the latest tag but instead the major version you need.
defaultValue: 8.4.1
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
- label: Default App id
defaultValue: home
@ -25,8 +26,12 @@ caproverOneClickApp:
defaultValue: 'true'
id: $$cap_MONITORING_ENABLED
- 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
- 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:
end: >-
That's it! If you get a 502 it might mean that kibana cannot find your elasticsearch instance. Please recheck your configs.