From f81691b1cd6509b5c8b6a5090d65be0827252b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=BE=D1=81=D1=82=D0=BD=D0=BE=D0=B2=20=D0=90=D0=BD?= =?UTF-8?q?=D0=B4=D1=80=D0=B5=D0=B9?= Date: Fri, 16 May 2025 09:52:13 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20docker-compose.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index bb85ac3..fab095d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,6 +11,8 @@ services: configs: - source: app_config target: /data/application.yaml + environment: + REPLICA: "{{.Task.Slot}}" labels: - "traefik.http.routers.expertisa-master.rule=HostRegexp(`(?i)master\\..+`)" @@ -18,8 +20,8 @@ services: - "traefik.http.services.expertisa-master.loadbalancer.healthcheck.path=/health/readiness" - "traefik.http.services.expertisa-master.loadbalancer.healthcheck.interval=5s" - - "traefik.http.routers.expertisa-master-{{.Task.Slot}}.rule=HostRegexp(`(?i)master-{{.Task.Slot}}\\..+`)" - - "traefik.http.routers.expertisa-master-{{.Task.Slot}}.tls=true" + - "traefik.http.routers.expertisa-master-${REPLICA}.rule=HostRegexp(`(?i)master-${REPLICA}\\..+`)" + - "traefik.http.routers.expertisa-master-${REPLICA}.tls=true" environment: JAVA_TOOL_OPTIONS: "-XX:MaxRAMPercentage=90"