feat(dev): allow running example app with docker

this PR allows backstage contributors to run the example app against
actual postgres, opensearch and redis services using docker and docker
compose file.

no changeset as this doesn't affect any published packages.

Signed-off-by: Hellgren Heikki <heikki.hellgren@op.fi>
This commit is contained in:
Hellgren Heikki
2025-09-10 12:23:26 +03:00
parent 89925d16d6
commit f78b0b02b8
7 changed files with 87 additions and 3 deletions
+11 -2
View File
@@ -15,18 +15,27 @@
*/
import { createBackend } from '@backstage/backend-defaults';
import { createBackendFeatureLoader } from '@backstage/backend-plugin-api';
import {
coreServices,
createBackendFeatureLoader,
} from '@backstage/backend-plugin-api';
const backend = createBackend();
// An example of how to group together and load multiple features. You can also
// access root-scoped services by adding `deps`.
const searchLoader = createBackendFeatureLoader({
*loader() {
deps: {
config: coreServices.rootConfig,
},
*loader({ config }) {
yield import('@backstage/plugin-search-backend');
yield import('@backstage/plugin-search-backend-module-catalog');
yield import('@backstage/plugin-search-backend-module-explore');
yield import('@backstage/plugin-search-backend-module-techdocs');
if (config.has('search.elasticsearch')) {
yield import('@backstage/plugin-search-backend-module-elasticsearch');
}
},
});