The docker-compose.yml file defines a comprehensive testing environment for the tenancy package, including multiple database engines and caching layers. You can customize the build and runtime behavior using several environment variables.
Build Arguments
PHP_VERSION: Sets the PHP version for the test container (defaults to 8.4).XDEBUG_ENABLED: Enables or disables Xdebug (defaults to false).
Environment Variables
PROJECT_PATH: Sets the working directory and volume mount path (defaults to $PWD).DB_PASSWORD, DB_USERNAME, DB_DATABASE: Configures the primary database connection for the test container.
Database Connection Hosts
The test container uses the following environment variables to locate the various service dependencies:
TENANCY_TEST_REDIS_HOST: Host for Redis.TENANCY_TEST_MYSQL_HOST: Host for MySQL.TENANCY_TEST_PGSQL_HOST: Host for PostgreSQL.TENANCY_TEST_SQLSRV_HOST: Host for MSSQL.TENANCY_TEST_SQLSRV_USERNAME: Username for MSSQL.TENANCY_TEST_SQLSRV_PASSWORD: Password for MSSQL (must match SA_PASSWORD in the mssql service).