GranDen-Corp / dev_docker_postgis

PostGis Docker compose project for ease of environment setup during development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run PostGIS in Docker Container

You need to install:

This docker-compose project consist of a PostGIS development DB instance and an admin web portal "pgAdmin".

And those configurable port & account/password values are stored in dev.env file.

Start/Stop service

Start PostGIS & pgAdmin

Execute dev_start.ps1 in PowerShell Core.

To customize additional parameters like docker-compose project name, PostGis DB name & DB binding port, pgAdmin4 binding port, look up help by invoking Get-Help .\dev_start.ps1 -Full, for example:

dev_start.ps1 -compose_proj local-test -gis_db local_dev -gis_port 5433 -admin_port 8089

If you need to reset those parameters, just remove the .env environment variables file in base folder.

Start only PostGIS

Set environment variable COMPOSE_PROFILES to dev before executing dev_start.ps1:

$env:COMPOSE_PROFILES='dev'; dev_start.ps1

Stop PostGIS & pgAdmin

Execute dev_stop.ps1 in PowerShell Core.

Remove service

Remove container but keep data

Execute dev_remove.ps1 in PowerShell Core.

Remove container and data

Execute dev_remove.ps1 --volumes in PowerShell Core.

Additional Notes

Customized docker-compose project environment variables are stored in .env file inside top folder, to reset customized setting, just run dev_remove.ps1 and also remove that .env file.

About

PostGis Docker compose project for ease of environment setup during development

License:MIT License


Languages

Language:PowerShell 94.5%Language:Shell 5.5%