Skip to content

Commit

Permalink
Update README.md (#171)
Browse files Browse the repository at this point in the history
Add notes about connecting to a postgres service that is not running on port 5432
  • Loading branch information
robe2 committed Feb 10, 2023
1 parent 939024d commit be691ef
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ SET DATABASE_URL=postgresql://username:password@host/dbname
pg_tileserv.exe
```

### PostgreSQL not on 5432

If your PostgreSQL is not running on unix socket or 5432 port, you can specify the port as part of the URL

```
DATABASE_URL=postgresql://username:password@host:port/dbname
```

### Docker

Use [Dockerfile.alpine](Dockerfile.alpine) to build a lightweight (18MB expanded) Docker Image.
Expand Down Expand Up @@ -68,6 +76,9 @@ If you want to pass a path directly to the configuration file, use the `--config
```

In general the defaults are fine, and the program autodetects things like the server name.
If you are not running PostgreSQL on 5432 port, you may need to add the port to the DbConnection parameter

`user=you host=localhost dbname=yourdb port=yourdbport`

```toml
# Database connection
Expand Down

0 comments on commit be691ef

Please sign in to comment.