Skip to content

Adding postgis #44

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 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
adding docs
  • Loading branch information
Łukasz Wiecheć committed Dec 18, 2015
commit bbd12cf8fa9eb2f42d85d11685e1d194a368964d
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,18 @@ docker run --name postgresql -itd \
sameersbn/postgresql:9.4-11
```

# Enabling PostGIS extension

PostGIS is spatial extension to PostgreSQL.

You can enable the PostGIS extension on database(s) by specifying `DB_POSTGIS=true`. For example, the following command enables the unaccent extension for the `dbname` database.

```bash
docker run --name postgresql -itd \
--env 'DB_NAME=dbname' --env 'DB_POSTGIS=true' \
sameersbn/postgresql:9.4-11
```

*By default the unaccent extension is disabled*

## Granting user access to a database
Expand Down