You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
---
|
|
|
|
elasticsearch_exporter_id: "{{ service_name }}-elasticsearch-exporter"
|
|
|
|
elasticsearch_exporter_docker: {
|
|
networks: [
|
|
{
|
|
name: back-tier,
|
|
external: true,
|
|
},
|
|
{
|
|
name: front-tier,
|
|
external: true,
|
|
},
|
|
],
|
|
services: [
|
|
{
|
|
name: "{{ elasticsearch_exporter_id }}",
|
|
image_name: "{{ elasticsearch_exporter_image_name }}",
|
|
image_version: "{{ elasticsearch_exporter_image_version }}",
|
|
command: [
|
|
'"--es.ca=/certificates/ca.crt"',
|
|
'"--es.uri=https://logstash-ingest:tH1iSiSas3cREt.Passw0rt@es-dev-elastic-stack-01:9200"',
|
|
],
|
|
labels: [
|
|
'"traefik.enable=true"',
|
|
'"traefik.http.routers.{{ elasticsearch_exporter_id }}.service={{ elasticsearch_exporter_id }}"',
|
|
'"traefik.http.routers.{{ elasticsearch_exporter_id }}.rule=Host(`{{ service_name }}.{{ domain }}`)"',
|
|
'"traefik.http.routers.{{ elasticsearch_exporter_id }}.entrypoints=admin-docker"',
|
|
'"traefik.http.routers.{{ elasticsearch_exporter_id }}.tls=true"',
|
|
'"traefik.http.routers.{{ elasticsearch_exporter_id }}.tls.certresolver=letsencrypt"',
|
|
'"traefik.http.services.{{ elasticsearch_exporter_id }}.loadbalancer.server.port=9114"',
|
|
],
|
|
volumes: [
|
|
'"./certs:/certificates:ro"',
|
|
],
|
|
networks: [
|
|
'"back-tier"',
|
|
'"front-tier"',
|
|
],
|
|
extra_hosts: "{{ elasticsearch_extra_hosts | default([]) }}",
|
|
}
|
|
]
|
|
}
|