-
Notifications
You must be signed in to change notification settings - Fork 253
/
Copy pathappsettings.Development.json
37 lines (36 loc) · 1.57 KB
/
appsettings.Development.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
// Steeltoe: Add schema to get auto-completion.
"$schema": "https://steeltoe.io/schema/latest/schema.json",
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
// Steeltoe: To use multiple MySQL databases locally in this sample:
// - uncomment line useMultipleDatabases
// - comment out section Default in section Steeltoe:Client:MySql
// - uncomment the sections sampleMySqlServiceOne and sampleMySqlServiceTwo in section Steeltoe:Client:MySql
// - start the docker containers
//"useMultipleDatabases": true,
// Steeltoe: Set MySQL connection string for non-cloud local development.
"Steeltoe": {
"Client": {
"MySql": {
"Default": {
"ConnectionString": "Server=localhost;Database=steeltoe;User=steeltoe;Password=steeltoe;Connection Timeout=15"
}
/*
"sampleMySqlServiceOne": {
// docker run --rm -ti -p 3307:3306 --name steeltoe-mysql1 -e MYSQL_ROOT_PASSWORD=steeltoe -e MYSQL_DATABASE=db1 -e MYSQL_USER=user1 -e MYSQL_PASSWORD=password1 mysql
"ConnectionString": "Server=localhost;Port=3307;Database=db1;User=user1;Password=password1;Connection Timeout=20"
},
"sampleMySqlServiceTwo": {
// docker run --rm -ti -p 3308:3306 --name steeltoe-mysql2 -e MYSQL_ROOT_PASSWORD=steeltoe -e MYSQL_DATABASE=db2 -e MYSQL_USER=user2 -e MYSQL_PASSWORD=password2 mysql
"ConnectionString": "Server=localhost;Port=3308;Database=db2;User=user2;Password=password2;Connection Timeout=25"
}
*/
}
}
}
}