This guide walks you through how to create a docker-compose deployment using multiple files. We start by creating a simple compose file where it uses the nginx image that will serve a page in a directory that is passed into the container via a mount.
Note: The volume mount is relative to the root directory of where you will be building your zipfile. In our case, we will have a data directory that will be mounted into the container. This directory will be named data and will be mounted read-only, although it is possible to make this mount read/write.
Now, the file can either be uploaded to artifactory (preferred method, since it uses the artifactory security settings) or via a webserver. Note that if you use a webserver, the MeX will need to be able to access it, which does not allow for the use of authentication.
Once you have received confirmation in the form of the json format returned above, you can move on to the steps for deploying a docker instance through the MeX console. There are two important things to keep in mind:
You should leave the Image Path field blank in the console.
You should provide the full URL for the Zip file in the Deployment Manifest text box. For example, the above ZIP file should be referenced as https://artifactory.mobiledgex.net/artifactory/repo-demoorg/compose-test.zip.