From fa0b26d9376195a53e5960ae6300713b18088b26 Mon Sep 17 00:00:00 2001 From: Puru <5674762+tuladhar@users.noreply.github.com> Date: Wed, 28 May 2025 17:05:56 +0545 Subject: [PATCH] Use .env for default configs --- docs/self-hosting/installation/index.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/self-hosting/installation/index.md b/docs/self-hosting/installation/index.md index fb3e794..863a1cd 100644 --- a/docs/self-hosting/installation/index.md +++ b/docs/self-hosting/installation/index.md @@ -105,7 +105,14 @@ For health check, a dedicated endpoint is available at `YOUR_URL/api/health`. ### Replace the default configs -You are to replace the default environment variables in the `docker-compose.yml` file. +You are to replace the default environment variables in the `.env` file. + +Create a `.env` file in the `docmost` directory and define the required variables, for example: +```shell +APP_URL=http://localhost:3000 +APP_SECRET=REPLACE_WITH_LONG_SECRET +POSTGRES_PASSWORD=STRONG_DB_PASSWORD +``` The `APP_URL` should be replaced with your chosen domain. E.g. `https://example.com` or `https://docmost.example.com`.