From 0a63da8de3d25742ba7844a57d420a5776160f9d Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Tue, 28 Jan 2025 00:34:52 +0100 Subject: [PATCH] feat(mysql): Add MYSQL_ALIAS_DNS_NAME --- compose.yaml | 2 ++ env/fqdn_context.env.example | 1 + 2 files changed, 3 insertions(+) diff --git a/compose.yaml b/compose.yaml index 9941223..507daa7 100644 --- a/compose.yaml +++ b/compose.yaml @@ -4,6 +4,8 @@ services: container_name: "snipeit-snipeit-${CONTEXT}" networks: snipeit-default: + links: + - "mysql:${MYSQL_ALIAS_DNS_NAME}" profiles: ["full", "snipeit"] ulimits: nproc: ${ULIMIT_NPROC:-65535} diff --git a/env/fqdn_context.env.example b/env/fqdn_context.env.example index 826c9b2..12a7e0b 100644 --- a/env/fqdn_context.env.example +++ b/env/fqdn_context.env.example @@ -15,6 +15,7 @@ MAIL_ENV_PASSWORD=my-mail-env-password MAIL_ENV_USERNAME=mail@example.com MAIL_PORT_587_TCP_ADDR=smtp.example.com MAIL_PORT_587_TCP_PORT=587 +MYSQL_ALIAS_DNS_NAME=db.fully.qualified.domain.name MYSQL_DATABASE=snipeit MYSQL_PASSWORD=my-mysql-user-password MYSQL_PORT=61001