From 6b31ae79c9563cd2f465734f975d39908e77bb18 Mon Sep 17 00:00:00 2001 From: Anye <53684988+Anyexyz@users.noreply.github.com> Date: Sat, 12 Oct 2024 16:47:31 +0800 Subject: [PATCH] Add environment variable parameter EMQX_NODE_NAME (#2284) --- apps/emqx/5.8.0/docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/emqx/5.8.0/docker-compose.yml b/apps/emqx/5.8.0/docker-compose.yml index aed98ceb..3ab1a2c8 100644 --- a/apps/emqx/5.8.0/docker-compose.yml +++ b/apps/emqx/5.8.0/docker-compose.yml @@ -15,6 +15,8 @@ services: volumes: - ./data:/opt/emqx/data - ./log:/opt/emqx/log + environment: + - EMQX_NODE_NAME=emqx@${CONTAINER_NAME} labels: createdBy: "Apps" networks: