You need to install:
- Docker Desktop if is on Mac / Windows desktop environment.
- PowerShell Core v7+
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.
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.
Set environment variable COMPOSE_PROFILES
to dev before executing dev_start.ps1
:
$env:COMPOSE_PROFILES='dev'; dev_start.ps1
Execute dev_stop.ps1
in PowerShell Core.
Execute dev_remove.ps1
in PowerShell Core.
Execute dev_remove.ps1 --volumes
in PowerShell Core.
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.