26 lines
417 B
Plaintext
Executable File
26 lines
417 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:8002 \
|
|
-v /srv/pandora/conf:/srv/pandora/conf \
|
|
-v /srv/pandora/data:/srv/pandora/data \
|
|
pandora
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop pandora
|
|
}
|