Skip to content

Commit

Permalink
update configuration.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ballPointPenguin committed Sep 28, 2024
1 parent f950bd5 commit 9f71179
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,19 @@ If you are deploying to a custom domain (not `pol.is`) then you need to update b
### Database

- **`READ_ONLY_DATABASE_URL`** (optional) Database replica for reads.

#### Required when using the docker postgres service (optional)

- **`POSTGRES_DB`** database name (e.g. `polis-dev`)
- **`POSTGRES_HOST`** database host (e.g. `postgres:5432` if using docker compose, `localhost:5432` if using local db)
- **`POSTGRES_PASSWORD`** database password
- **`POSTGRES_PORT`** typically 5432
- **`POSTGRES_USER`** typically `postgres`. Any username will be used by the docker container to create a db user.

#### Required in all cases

- **`DATABASE_URL`** should be the combination of above values, `postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}/${POSTGRES_DB}`
- **`POSTGRES_DOCKER`** Set to `false` if using a postgres database outside of docker. Defaults to `true`. Read by Makefile.

### Docker Concerns

Expand Down

0 comments on commit 9f71179

Please sign in to comment.