Reference: https://docs.docker.com/compose/compose-file/#compose-file-structure-and-examples
Collection of a few docker-compose examples which I use regularly
# docker-compsoe version to be used must be mentioned at the top
version: '3'
services:
import java.io.{File, FileOutputStream, IOException, InputStream} | |
import java.util | |
import scala.collection.JavaConverters._ | |
import org.xml.sax.{ContentHandler, SAXException} | |
import org.apache.tika.metadata.Metadata | |
import org.apache.tika.metadata.HttpHeaders.CONTENT_TYPE | |
import org.apache.tika.mime.MediaType | |
import org.apache.tika.parser.{AbstractParser, ParseContext} | |
import org.apache.commons.io.IOUtils |
Reference: https://docs.docker.com/compose/compose-file/#compose-file-structure-and-examples
Collection of a few docker-compose examples which I use regularly
# docker-compsoe version to be used must be mentioned at the top
version: '3'
services:
/** | |
* Converts an RGB color value to HSL. Conversion formula | |
* adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
* Assumes r, g, and b are contained in the set [0, 255] and | |
* returns h, s, and l in the set [0, 1]. | |
* | |
* @param Number r The red color value | |
* @param Number g The green color value | |
* @param Number b The blue color value | |
* @return Array The HSL representation |