WithConfigFile

This commit is contained in:
İsmail
2024-11-07 16:18:30 +03:00
parent 6695e10cbe
commit 2d4d9e7af1

View File

@@ -35,9 +35,12 @@ func CreatePGDB() (func(), error) {
func CreateMyDB() (func(), error) {
mysqlConfigPath := "../../management/server/testdata/mysql.cnf"
ctx := context.Background()
c, err := mysql.Run(ctx,
"mysql:8.0.40",
mysql.WithConfigFile(mysqlConfigPath),
mysql.WithDatabase("netbird"),
mysql.WithUsername("netbird"),
mysql.WithPassword("mysql"),