Mounting a volume

Mounting a volume

To add a volume to docker all you need to do is go to your folder


You'll find a script: 

Inside this script, you'll find

 docker run -t -d \ --restart unless-stopped \ --net entermedia \ --ip $IP_ADDR \ --name $INSTANCE \ --log-opt max-size=10m --log-opt max-file=10 \ --cap-add=SYS_PTRACE \ -e TZ="America/New_York" \ -e USERID=$USERID \ -e GROUPID=$GROUPID \ -e CLIENT_NAME=$SITE \ -e INSTANCE_PORT=$NODENUMBER \ -v ${ENDPOINT}/webapp:/opt/entermediadb/webapp \ -v ${ENDPOINT}/data:/opt/entermediadb/webapp/WEB-INF/data \ -v ${ENDPOINT}/elastic:/opt/entermediadb/webapp/WEB-INF/elastic \ -v ${ENDPOINT}/services:/media/services \ -v ${ENDPOINT}/$NODENUMBER/tmp:/tmp \ -v ${SCRIPTROOT}/tomcat:/opt/entermediadb/tomcat \ entermediadb/entermedia10:$BRANCH \ /usr/bin/ 

You'll notice that we are already adding volumes and all you need to do, is add your own volume

 ... -v /path/to/your/volume:/path/inside/container \ ... 

This will mount the folder inside the container. Now you can use hotfolders