feat(mysql): Set hostname

This commit is contained in:
hygienic-books 2025-01-28 00:40:17 +01:00
parent 0a63da8de3
commit fc1238bc2f

View File

@ -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