diff --git a/docs/logto-oss/deployment-and-configuration.mdx b/docs/logto-oss/deployment-and-configuration.mdx index 530a69f9f5a..7707d0f0b44 100644 --- a/docs/logto-oss/deployment-and-configuration.mdx +++ b/docs/logto-oss/deployment-and-configuration.mdx @@ -97,6 +97,16 @@ You are all set. Open the browser and visit `https://admin.your-domain.com`, you For production, you may use Docker to containerize Logto. You can find the Dockerfile in the root directory of the project. If you want to run multiple instances of Logto, for instance, deploy Logto in a Kubernetes cluster, There are some additional steps you need to take. +### Database setup \{#database-setup} + +Prepare a Postgres database for Logto. It is strongly recommended to use Logto CLI to initialize the database. + +```bash +npm run cli db seed -- --swe +``` + +Refer to the [Logto CLI](/logto-oss/using-cli) for more details. + ### Shared connectors folder \{#shared-connectors-folder} By default, Logto will create a `connectors` folder in the root directory of the `core` folder. We recommend sharing the folder between multiple instances of Logto, you need to mount the `packages/core/connectors` folder to the container and run `npm run cli connector add -- --official` to deploy the connectors.