Skip to content

Commit 43b0a20

Browse files
Changed config YAML and dockerfile for backend app
1 parent f85e494 commit 43b0a20

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

backstage-app/backstage101/app-config.yaml

+10-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ backend:
1212
# auth:
1313
# keys:
1414
# - secret: ${BACKEND_SECRET}
15-
baseUrl: http://localhost:7007
15+
baseUrl: http://localhost:80
1616
listen:
1717
port: 7007
1818
# Uncomment the following host directive to bind to specific interfaces
@@ -28,16 +28,20 @@ backend:
2828
# This is for local development only, it is not recommended to use this in production
2929
# The production database configuration is stored in app-config.production.yaml
3030
database:
31-
client: better-sqlite3
32-
connection: ':memory:'
33-
# workingDirectory: /tmp # Use this to configure a working directory for the scaffolder, defaults to the OS temp-dir
31+
client: pg
32+
connection:
33+
host: postgres
34+
port: 5432
35+
user: backstage
36+
password: hunter2
37+
# workingDirectory: /tmp # Use this to configure a working directory for the scaffolder, defaults to the OS temp-dir
3438

3539
integrations:
3640
github:
3741
- host: github.com
3842
# This is a Personal Access Token or PAT from GitHub. You can find out how to generate this token, and more information
3943
# about setting up the GitHub integration here: https://backstage.io/docs/getting-started/configuration#setting-up-a-github-integration
40-
token: ${GITHUB_TOKEN}
44+
token: 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
4145
### Example for how to add your GitHub Enterprise instance using the API:
4246
# - host: ghe.example.net
4347
# apiBaseUrl: https://ghe.example.net/api/v3
@@ -99,4 +103,4 @@ catalog:
99103
# - type: url
100104
# target: https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/acme-corp.yaml
101105
# rules:
102-
# - allow: [User, Group]
106+
# - allow: [User, Group]

backstage-app/backstage101/packages/backend/Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#
1010
# Once the commands have been run, you can build the image using `yarn build-image`
1111

12-
FROM node:16-bullseye-slim
12+
FROM node:18.12.0
1313

1414
# Install sqlite3 dependencies. You can skip this if you don't use sqlite3 in the image,
1515
# in which case you should also move better-sqlite3 to "devDependencies" in package.json.
@@ -41,6 +41,7 @@ RUN --mount=type=cache,target=/home/node/.cache/yarn,sharing=locked,uid=1000,gid
4141

4242
# Then copy the rest of the backend bundle, along with any other files we might want.
4343
COPY --chown=node:node packages/backend/dist/bundle.tar.gz app-config*.yaml ./
44+
COPY --chown=node:node examples/ /examples/
4445
RUN tar xzf bundle.tar.gz && rm bundle.tar.gz
4546

46-
CMD ["node", "packages/backend", "--config", "app-config.yaml", "--config", "app-config.production.yaml"]
47+
CMD ["node", "packages/backend", "--config", "app-config.yaml"]

0 commit comments

Comments
 (0)