diff --git a/docs/deployment/koyeb.md b/docs/deployment/koyeb.md new file mode 100644 index 0000000000..e656dde267 --- /dev/null +++ b/docs/deployment/koyeb.md @@ -0,0 +1,48 @@ +--- +id: koyeb +title: Deploying with Koyeb +sidebar_label: Koyeb +description: How to deploy Backstage to Koyeb +--- + +This guide explains how to deploy Backstage to [Koyeb](https://www.koyeb.com/), a serverless platform that provides the fastest way to deploy applications globally. Koyeb supports git-driven and container-based deployments. + +Before you begin, make sure you have a [Koyeb account](https://app.koyeb.com/) to follow this guide. + +## Configuring the CLI + +First, install the +[Koyeb CLI](https://www.koyeb.com/docs/quickstart/koyeb-cli) and follow the instructions in the [quickstart guide](https://www.koyeb.com/docs/quickstart/koyeb-cli) to login. + +Then, configure your `app-config.yaml` with your `baseURL`: + +```yaml +app: + # Should be the same as backend.baseUrl when using the `app-backend` plugin + baseUrl: https://.koyeb.app + +backend: + baseUrl: https://.koyeb.app + listen: + port: + $env: PORT + # The $PORT environment variable is a feature of Koyeb + # https://www.koyeb.com/docs/apps/services +``` + +## Push and deploy Backstage to Koyeb + +Push your Backstage application with its [Dockerfile](docker.md) to Koyeb using the following command: + +```bash +koyeb app init example-backstage \ + --git github.com// \ + --git-branch main \ + --ports 8000:http \ + --routes /:8000 \ + --env PORT=8000 +``` + +Your application will be built and deployed to Koyeb. Once the build has finished, you will be able to access your application running on Koyeb by clicking the URL ending with `.koyeb.app`. + +Congratulations! Now you should have Backstage up and running! 🎉