#!/sbin/openrc-run description="Motech docker container" depend() { need docker net postgres activemq use dns logger netmount postfix } start() { /usr/bin/docker run -d --rm \ --name motech \ -h motech \ --link activemq \ --link postfix \ --link postgres \ -p 127.0.0.1:8013:8013 \ -v /srv/motech/conf:/srv/tomcat/.motech \ motech } stop() { /usr/bin/docker stop motech }