From fc1238bc2f508ac9aa830c43be9a2b5d52dfea7e Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Tue, 28 Jan 2025 00:40:17 +0100 Subject: [PATCH] feat(mysql): Set hostname --- compose.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/compose.yaml b/compose.yaml index 507daa7..51e910e 100644 --- a/compose.yaml +++ b/compose.yaml @@ -46,6 +46,7 @@ services: mysql: image: "mysql:${MYSQL_VERSION}" container_name: "snipeit-mysql-${CONTEXT}" + hostname: "${MYSQL_ALIAS_DNS_NAME}" healthcheck: test: ["CMD", "mysqladmin" ,"ping", "--protocol", "tcp", "-h", "127.0.0.1"] interval: 3s