Skip to content

Instantly share code, notes, and snippets.

@iffa
Last active May 10, 2020 11:37
Show Gist options
  • Save iffa/af3ef500c9e17e8dcc31e477af168468 to your computer and use it in GitHub Desktop.
Save iffa/af3ef500c9e17e8dcc31e477af168468 to your computer and use it in GitHub Desktop.
CapRover template for the OSRM backend
{
"captainVersion": "2",
"documentation": "https://hub.docker.com/r/peterevans/osrm-backend/",
"displayName": "Open Source Routing Machine",
"description": "The Open Source Routing Machine in a box! This is the routing engine backend.",
"dockerCompose": {
"version": "3.3",
"services": {
"$$cap_appname": {
"image": "peterevans/osrm-backend:$$cap_osrm_version",
"notExposeAsWebApp": "true",
"restart": "always",
"environment": {
"OSRM_PBF_URL": "$$cap_osrm_pbf"
}
}
}
},
"instructions": {
"start": "High performance routing engine written in C++14 designed to run on OpenStreetMap data.",
"end": "OSRM is deployed and available as srv-captain--$$cap_appname:5000 to other apps."
},
"variables": [
{
"id": "$$cap_osrm_version",
"label": "OSRM Backend version",
"defaultValue": "1.19",
"description": "https://hub.docker.com/r/peterevans/osrm-backend/tags/",
"validRegex": "/^([^\\s^\\/])+$/"
},
{
"id": "$$cap_osrm_pbf",
"label": "PBF url",
"defaultValue": "http://download.geofabrik.de/europe/finland-latest.osm.pbf",
"description": "",
"validRegex": "/.{1,}/"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment