From b84557d921d9f4685b7f4f5e826d94e02dd960a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 10 Dec 2020 11:06:36 +0100 Subject: [PATCH] fix pings, map UDP cluster port as well MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes issue with: [DEBUG] memberlist: Failed ping: 01ES60AHQ05ZNRSXR6Y5SW33Q2 (timeout reached) [WARN] memberlist: Was able to connect to 01ES60AHQ05ZNRSXR6Y5SW33Q2 but other probes failed, network may be m Signed-off-by: Jakub SokoĊ‚owski --- templates/docker-compose.yml.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index 7a2ac9c..baf95a1 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -8,7 +8,8 @@ services: restart: 'always' ports: - '0.0.0.0:{{ alertmanager_webui_port }}:{{ alertmanager_webui_port }}' # Web UI - - '0.0.0.0:{{ alertmanager_cluster_port }}:{{ alertmanager_cluster_port }}' # Cluster + - '0.0.0.0:{{ alertmanager_cluster_port }}:{{ alertmanager_cluster_port }}/tcp' # Cluster + - '0.0.0.0:{{ alertmanager_cluster_port }}:{{ alertmanager_cluster_port }}/udp' # Cluster volumes: - '{{ alertmanager_service_path }}/conf/alertmanager.yml:/etc/alertmanager.yml:ro' - '{{ alertmanager_service_path }}/conf/amtool.yml:/etc/amtool/config.yml:ro'