-
Notifications
You must be signed in to change notification settings - Fork 146
Update the readme. #20
Description
Usage: docker run [COMMAND ...]
Run OpenStreetMap Tile Server related operations in a docker container.
Positional arguments:
The command to run. (default: help)
Commands [COMMAND ]:
helpShow this help message
initdbInitialise the postgres database
startdbStart the postgresql database
createuserCreate the osm user in the database
createdbCreate the osm database
importImport osm data into the database
startservicesStart the osm web services
cliDrop into a bash shell
dropdbDrop the osm database
Set up a database saved on an external volume:
The following command will initialise the postgresql database on an external
volume that can be used to persist the data:
docker run -v /data/osm-postgresql:/var/lib/postgresql homme/openstreetmap-tiles initdb startdb createuser createdb migrate
Import data:
The following will import the .osm file at /tmp/import.osm into the database.
docker run -v /data/osm-postgresql:/var/lib/postgresql -v /tmp:/data homme/openstreetmap-tiles startdb import
Start the webserver:
Once data is loaded and users have been created run the webserver:
docker run -P -v /data/osm-postgresql:/var/lib/postgresql homme/openstreetmap-tiles startdb startservices