Skip to content

Commit

Permalink
Merge pull request #68 from saerdnaer/master
Browse files Browse the repository at this point in the history
meta: improve readme
  • Loading branch information
thomersch committed Jun 6, 2021
2 parents 33c193a + b992d0d commit 83707e9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,20 @@ We support Python ≥ 3.7 and PostgreSQL ≥ 10.
You need a running PostgreSQL database. There are two options: Running it locally or using Docker.

#### A) Local Installation
Create a PostgreSQL user called `osmcal` and a database `osmcal` with the owner set to `osmcal`. Make sure you have
Create a PostgreSQL user called `osmcal` and a database `osmcal` with the owner set to `osmcal`. E.g.
```
CREATE ROLE osmcal WITH LOGIN ENCRYPTED PASSWORD 'postgres';
CREATE DATABASE osmcal OWNER osmcal;
CREATE EXTENSION postgis;
```

Make sure you have following line in your [pg_hba.conf](https://www.postgresql.org/docs/12/auth-pg-hba-conf.html), so osmcal need a password to log in:
```
local all all trust
```
Alternatively, you can set your DB password using the `POSTGRES_PASSWORD` environment variable, c.f. the following section on Docker.


in your [pg_hba.conf](https://www.postgresql.org/docs/12/auth-pg-hba-conf.html), so osmcal need a password to log in. Alternatively, you can set your DB password using the `POSTGRES_PASSWORD` environment variable.


#### B) Docker
Expand Down

0 comments on commit 83707e9

Please sign in to comment.