#!/sbin/openrc-run description="SAMBRO docker container" depend() { need docker net use dns logger netmount after postgres } start() { /usr/bin/docker run -d --rm \ --name sambro \ -h sambro \ --link postgres \ -p 127.0.0.1:8099:8001 \ -v /srv/sambro/conf:/srv/web2py/applications/eden/models \ -v /srv/sambro/data/SAMBRO:/srv/web2py/applications/eden/modules/templates/SAMBRO \ -v /srv/sambro/data/databases:/srv/web2py/applications/eden/databases \ -v /srv/sambro/data/uploads:/srv/web2py/applications/eden/uploads \ sahana } stop() { /usr/bin/docker stop sambro }