Skip to content

docs: use .env for default configs #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion docs/self-hosting/installation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down