NYCPlanning / ae-zoning-api

This application is API for serving data related to zoning and tax lots.
2 stars 0 forks source link

use a more unique local DB port mapping #200

Closed damonmcc closed 6 months ago

damonmcc commented 6 months ago

related to NYCPlanning/ae-data-flow#29

summary of changes

This enables the simultaneous use of more than one local dockerized database by using a host port number that's more unique than the default.

details

The new Data Flow repo mimics the approach of this one: a docker container for a local postgres database.

In order to use two local databases created via docker compose up, the host port of the port mapping in compose.yml must be more unique than 5432:5432.

The host port for the Data Flow DB has already be changed to 8001 here. The proposed host port number here is 8010. Both number were chosen arbitrarily.

screenshots

data in the local databases

Screenshot 2024-04-02 at 10 34 21 AM

data in the Zoning PoC

Screenshot 2024-04-02 at 10 23 28 AM