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