mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-09 10:29:37 +00:00
feat: Add postgres container
This commit is contained in:
@@ -8,7 +8,7 @@ use Testcontainer\Wait\WaitForExec;
|
||||
|
||||
class MySQLContainer extends Container
|
||||
{
|
||||
public function __construct(string $version = 'latest', string $mysqlRootPassword = 'root')
|
||||
private function __construct(string $version, string $mysqlRootPassword)
|
||||
{
|
||||
parent::__construct('mysql:' . $version);
|
||||
$this->withEnvironment('MYSQL_ROOT_PASSWORD', $mysqlRootPassword);
|
||||
|
||||
Reference in New Issue
Block a user