Spotter-VM/pandora/etc/init.d/pandora

18 lines
393 B
Plaintext
Executable File

#!/sbin/openrc-run
description="Pan.do/ra docker container"
depend() {
need docker net
use dns logger netmount
after postgres rabbitmq
}
start() {
/usr/bin/docker run -d --rm --name pandora -h pandora --link postgres --link rabbitmq -p 127.0.0.1:9011:8011 -v /srv/pandora/conf:/srv/pandora/conf -v /srv/pandora/data:/srv/pandora/data pandora
}
stop() {
/usr/bin/docker stop pandora
}