Closed zstadler closed 2 years ago
Thanks a lot. I assumed that for OMT there will be PR for adding something like command: -p ${PGPORT:-5432}
in docker-compose.yml
in postgres
target?
I think so too. Something like
services:
postgres:
ports:
- "${PGPORT:-5432}:${PGPORT:-5432}"
Related to https://github.com/openmaptiles/openmaptiles/issues/1354
PostGIS initialization could not be completed if
$PGPORT
was not the default 5432.For example, when using
PGPORT=54321
, the initialization is incomplete:where
20_omt_postgis.sh
is a copy ofdocker/postgis/initdb-postgis.sh
To make
20_omt_postgis.sh
work like10_postgis.sh
does:/usr/local/bin/docker-entrypoint.sh
."${psql[@]}"
is used rather thanpsql
.The result is a complete initialization: