* APSL/thumbor is not actively maintained and doesn't have the latest versions * [MinimaCompact](https://github.com/MinimalCompact/thumbor) is actively maintained and works closely with the thumbor core team * This change switches to use minimalcompact and also upgrades the default version to the latest * Note: not sure if it's worth hard-coding an explicit version `6.7.0` or use the `latest` tag?
32 lines
1.7 KiB
JSON
32 lines
1.7 KiB
JSON
{
|
|
"captainVersion": "1",
|
|
"documentation": "Taken from https://hub.docker.com/r/minimalcompact/thumbor/tags/",
|
|
"dockerCompose": {
|
|
"version": "3.3",
|
|
"services": {
|
|
"$$cap_appname-db": {
|
|
"image": "minimalcompact/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.7.0",
|
|
"description": "Checkout their docker page for the valid tags https://hub.docker.com/r/minimalcompact/thumbor/tags/",
|
|
"validRegex": "/^([^\\s^\\/])+$/"
|
|
}]
|
|
|
|
}
|