-
Notifications
You must be signed in to change notification settings - Fork 252
/
appsettings.Development.json
38 lines (38 loc) · 1.33 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
38
{
// Steeltoe: Add schema to get auto-completion.
"$schema": "https://steeltoe.io/schema/latest/schema.json",
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
// Steeltoe: Set MySQL connection string for non-cloud local development (single database).
"MySql": {
"Client": {
"ConnectionString": "Server=localhost;Database=steeltoe;User=steeltoe;Password=steeltoe"
}
}
/*,
// Steeltoe: To use multiple MySQL databases: comment out ConnectionString above and uncomment this structure.
"useMultipleDatabases": true,
"services": {
"local-mysql": [
{
// docker run --rm -ti -p 3306:3306 --name steeltoe-mysql0 -e MYSQL_ROOT_PASSWORD=steeltoe -e MYSQL_DATABASE=sampledata -e MYSQL_USER=newuser0 -e MYSQL_PASSWORD=password mysql
"name": "myMySqlService",
"credentials": {
"uri": "mysql://newuser0:password@localhost:3306/sampledata"
}
},
{
// docker run --rm -ti -p 3307:3306 --name steeltoe-mysql1 -e MYSQL_ROOT_PASSWORD=steeltoe -e MYSQL_DATABASE=othersampledata -e MYSQL_USER=newuser1 -e MYSQL_PASSWORD=password mysql
"name": "myOtherMySqlService",
"credentials": {
"uri": "mysql://newuser1:password@localhost:3307/othersampledata"
}
}
]
}
*/
}