Docker - Added Prerequisites section
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
+10
-20
@@ -5,29 +5,19 @@ sidebar_label: Docker
|
||||
description: How to build a Backstage Docker image for deployment
|
||||
---
|
||||
|
||||
:::note Note
|
||||
Before you start this section, it would be good to have a basic understanding of Docker and how it works. If you are new to Docker, you can start with the [Docker overview](https://docs.docker.com/get-started/overview/) guide.
|
||||
:::
|
||||
## Summary
|
||||
|
||||
This section describes how to build a Backstage App into a deployable Docker
|
||||
image. It is split into three sections, first covering the host build approach,
|
||||
which is recommended due to its speed and more efficient and often simpler
|
||||
caching. The second section covers a full multi-stage Docker build, and the last
|
||||
section covers how to deploy the frontend and backend as separate images.
|
||||
This section describes how to build a Backstage App into a deployable Docker image. It is split into three sections, first covering the host build approach, which is recommended due to its speed and more efficient and often simpler caching. The second section covers a full multi-stage Docker build, and the last section covers how to deploy the frontend and backend as separate images.
|
||||
|
||||
Something that goes for all of these docker deployment strategies is that they
|
||||
are stateless, so for a production deployment you will want to set up and
|
||||
connect to an external PostgreSQL instance where the backend plugins can store
|
||||
their state, rather than using SQLite.
|
||||
## Prerequisites
|
||||
|
||||
This section assumes that an [app](https://backstage.io/docs/getting-started/)
|
||||
has already been created with `@backstage/create-app`, in which the frontend is
|
||||
bundled and served from the backend. This is done using the
|
||||
`@backstage/plugin-app-backend` plugin, which also injects the frontend
|
||||
configuration into the app. This means that you only need to build and deploy a
|
||||
single container in a minimal setup of Backstage. If you wish to separate the
|
||||
serving of the frontend out from the backend, see the
|
||||
[separate frontend](#separate-frontend) topic below.
|
||||
This guide assumes your have a basic understanding of Docker and how it works. If you are new to Docker, you can start with the [Docker overview](https://docs.docker.com/get-started/overview/) guide.
|
||||
|
||||
You'all also want to complete the following prerequisites:
|
||||
|
||||
1. Created an app following the [Getting Started guide](../getting-started/index.md)
|
||||
2. Setup an auth provider, the [Authentication guide](../getting-started/config/authentication.md) is a good starting point for this, the default [Guest auth provider](../auth/guest/provider.md) is not intended for use in deployed environments
|
||||
3. A Postgres database setup that you are able to connect to, the [Database guide](../getting-started/config/database.md) can help you with this
|
||||
|
||||
## Host Build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user