one-click-apps/public/v1/apps/thumbor.json

37 lines
1.7 KiB
JSON

{
"captainVersion": "1",
"documentation": "Taken from https://hub.docker.com/r/apsl/thumbor/tags/",
"dockerCompose":
{
"version": "3.3",
"services":
{
"$$cap_appname-db":
{
"image": "apsl/thumbor:$$cap_thumbor_version",
"volumes": [
"$$cap_appname-thumbor:/data"
],
"restart": "always",
"environment":
{
"THUMBOR_PORT": "80"
}
}
}
},
"instructions":{
"start":"thumbor is a smart imaging service. It enables on-demand crop, resizing and flipping of images. It also features a VERY smart detection of important points in the image for better cropping and resizing, using state-of-the-art face and feature detection algorithms (more on that in Detection Algorithms). Using thumbor is very easy (after it is running). All you have to do is access it using an URL for an image, like this:\n http://<thumbor-server>/300x200/smart/s.glbimg.com/et/bb/f/original/2011/03/24/VN0JiwzmOw0b0lg.jpg\n\n See http://thumbor.org for more details. \n\n Enter your thumbor Configuration parameters and click on next. It will take about a minute for the process to finish.",
"end":"'thumbor is deployed and available as $$cap_appname-db. Go to YOUR_APP_URL/unsafe/200x50/i.imgur.com/bvjzPct.jpg to test thumbor!"
},
"variables": [
{
"id": "$$cap_thumbor_version",
"label": "Thumbor Version",
"defaultValue": "6.4.2",
"description": "Checkout their docker page for the valid tags https://hub.docker.com/r/apsl/thumbor/tags/",
"validRegex": "/.{1,}/"
}]
}