|
10 | 10 |
|
11 | 11 | var keycloak = builder.AddKeycloak("keycloak", adminUsername: keycloakAdminUsername, adminPassword: keycloakAdminPassword) |
12 | 12 | .WithDataVolume() |
13 | | - .WithEnvironment("KC_HEALTH_ENABLED", "true") |
14 | | - .WithEnvironment("KC_METRICS_ENABLED", "true") |
| 13 | + .WithOtlpExporter() |
15 | 14 | .WithRealmImport("../config/keycloak/realms"); |
16 | 15 | openIDConnectSettingsClientSecret.WithParentRelationship(keycloak); |
17 | 16 | keycloakAdminUsername.WithParentRelationship(keycloak); |
|
108 | 107 | .WithEnvironment("TEMPO_URL", $"{tempo.GetEndpoint("otlp")}"); |
109 | 108 |
|
110 | 109 | var postgres = builder.AddPostgres("postgres") |
111 | | - .WithDataVolume() |
112 | | - .WithPgAdmin() |
113 | | - .WithPgWeb(); |
| 110 | + .WithDataVolume(); |
| 111 | +postgres |
| 112 | + .WithPgAdmin(c => c.WithParentRelationship(postgres)) |
| 113 | + .WithPgWeb(c => c.WithParentRelationship(postgres)); |
114 | 114 |
|
115 | 115 | var database = postgres.AddDatabase("sandbox-db"); |
116 | 116 |
|
|
126 | 126 | IconName = "DatabaseLightning", |
127 | 127 | ConfirmationMessage = "Are you sure you want to reset the database?", |
128 | 128 | }); |
| 129 | + |
| 130 | + migrations.WithHttpCommand(path: "/reseed-db", displayName: "Reseed Database", commandOptions: new HttpCommandOptions |
| 131 | + { |
| 132 | + IconName = "DatabaseLightning", |
| 133 | + ConfirmationMessage = "Are you sure you want to reseed the database?", |
| 134 | + }); |
129 | 135 | } |
130 | 136 |
|
131 | 137 | var apiService = builder.AddProject<Projects.Sandbox_ApiService>("apiservice") |
|
161 | 167 | .WaitFor(angularApplication) |
162 | 168 | .WaitFor(openTelemetryCollector) |
163 | 169 | .WaitFor(keycloak) |
164 | | - .WithUrlForEndpoint("http", url => |
| 170 | + .WithUrlForEndpoint("https", url => |
165 | 171 | { |
166 | 172 | url.DisplayText = "Open application"; |
167 | 173 | }) |
|
0 commit comments