Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2024-02-25 23:13:51 +01:00
parent fd61d39bc5
commit 32eee9dd9f
2 changed files with 2 additions and 2 deletions
@@ -54,7 +54,7 @@ export async function startMysqlContainer(image: string) {
const container = await new GenericContainer(image)
.withExposedPorts(3306)
.withEnv('MYSQL_ROOT_PASSWORD', password)
.withEnvironment({ MYSQL_ROOT_PASSWORD: password })
.withTmpFs({ '/var/lib/mysql': 'rw' })
.start();
@@ -54,7 +54,7 @@ export async function startPostgresContainer(image: string) {
const container = await new GenericContainer(image)
.withExposedPorts(5432)
.withEnv('POSTGRES_PASSWORD', password)
.withEnvironment({ POSTGRES_PASSWORD: password })
.withTmpFs({ '/var/lib/postgresql/data': 'rw' })
.start();