You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://github.com/giggls/mapnik-german-l10n.git
git clone https://github.com/pramsey/pgsql-gzip.git
# install depend debian packages (see INSTALL.md/README.md in repo)# create packagescd mapnik-german-l10n
make deb
cd ../pgsql-gzip
make deb # If you have an error with gpgsign, you can ignore itcd ..
# Install extensions
dpkg -i postgresql-15-gzip_1.0.1_amd64.deb
dpkg -i postgresql-15-osml10n_2.5.10_amd64.deb
Create database and user for OpenMapTiles using psql:
-- OpenMapTiles / imposm3 uses old library, so only md5 is supported
-- To create a user with md5 instead of scram-sha-256
-- you have to set it while creation/modification to md5
SET password_encryption = 'md5';
-- Create user and a SECURE password
CREATE USER omt PASSWORD 'omt' LOGIN;
CREATE DATABASE omt OWNER omt;
-- Connect to db and add extensions
CREATE EXTENSION hstore;
CREATE EXTENSION postgis;
CREATE EXTENSION gzip;
CREATE EXTENSION osml10n CASCADE;
Modify postgres.conf and pg_hba.conf to access form docker:
$ grep listen postgresql.conf
listen_addresses = '*' # what IP address(es) to listen on;
$ grep 172 pg_hba.conf
host omt omt 172.0.0.0/8 md5