#!/sbin/openrc-run description="Sigmah docker container" depend() { need docker net use dns logger netmount after activemq postgres } start() { /usr/bin/docker run -d --rm \ --name sigmah \ -h sigmah \ --link postgres \ -p 127.0.0.1:9015:8011 \ -v /srv/sigmah/data:/srv/sigmah/data \ -v /srv/sigmah/conf/persistence.xml:/srv/tomcat/webapps/sigmah/WEB-INF/classes/META-INF/persistence.xml \ -v /srv/sigmah/conf/sigmah.properties:/srv/tomcat/webapps/sigmah/WEB-INF/classes/sigmah.properties \ sigmah } stop() { /usr/bin/docker stop sigmah }