feat: Add postgres container

This commit is contained in:
Steffen Beisenherz
2022-10-23 14:56:44 +02:00
parent b90e75aa3d
commit 45f0e11f69
7 changed files with 61 additions and 5 deletions
+1 -1
View File
@@ -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);