https://github.com/markusand/postgis-server
PostGIS server over Docker
https://github.com/markusand/postgis-server
Last synced: 4 months ago
JSON representation
PostGIS server over Docker
- Host: GitHub
- URL: https://github.com/markusand/postgis-server
- Owner: markusand
- Created: 2021-02-26T17:07:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-11T10:17:01.000Z (about 5 years ago)
- Last Synced: 2025-06-11T20:15:52.348Z (about 1 year ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PostGIS server
Create a **PostgreSQL** + **PostGIS** + **pgAdmin** server with Docker
## Setup
Install Git, [Docker](https://docs.docker.com/engine/install/debian/) and [Docker Compose](https://docs.docker.com/compose/install/), if not already installed.
```bash
$ sudo apt-get update
$ sudo apt-get install git
```
Clone the repo under the selected directory
```bash
$ git clone https://github.com/markusand/postgis-server
$ cd postgis-server
```
Create a `.env` file and fullfill with required variables
```bash
$ cp .env.sample .env
$ nano .env
```
Mount the container and enjoy :tada:
```bash
$ docker-compose up -d
```
## Manage database
The container exposes an instance of pgAdmin to manage the PostgreSQL from a web browser.
The connection to database must be configured the first time you enter pgAdmin. Use same variables in `.env`
- host: **host.docker.internal**
- port: `POSTGRES_PORT`
- maintenance database: **postgres**
- username: `POSTGRES_USER`
- password: `POSTGRES_PASS`
Default `reader`, `editor` and `creator` roles are created during initialization and have assigned specific privileges over the `public` schema. Assign a role to any new created user.