Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # launch a postgis container with default user "postgres"
- docker run --name rex -e POSTGRES_PASSWORD=rex -d mdillon/postgis
- # into psql with identity postgres
- docker run -it --link rex:postgres --rm mdillon/postgis sh -c 'exec psql -h rex -p 5432 -U postgres' sh -c 'exec psql -h rex -p 5432 -U postgres'
- # launch a postgis container with db called rex
- docker run --name rex \
- -e POSTGRES_PASSWORD=rex \
- -e POSTGRES_USER=rex \
- -e POSTGRES_DB=rex \
- -d mdillon/postgis
- # use openmaptiles with custom mapping file to import data into postgis container
- docker run --rm \ [0]
- --link rex:postgres \
- -v $(pwd):/import \
- -v $(pwd):/mapping \
- -e POSTGRES_USER="rex" \
- -e POSTGRES_PASSWORD="rex" \
- -e POSTGRES_HOST="rex" \
- -e POSTGRES_DB="rex" \
- -e POSTGRES_PORT="5432" \
- openmaptiles/import-osm
- # serve osm.pbf at localhost:6767 using t-rex docker
- docker run -it --rm -p 6767:6767 -v `pwd`:/data sourcepole/t-rex serve --datasource /data/taiwan-latest.osm.pbf --openbrowser=false --bind=0.0.0.0
Add Comment
Please, Sign In to add comment