18 lines
372 B
Plaintext
Executable File

#!/sbin/openrc-run
description="Crisis Cleanup docker container"
depend() {
need docker net
use dns logger netmount
after postgres
}
start() {
/usr/bin/docker run -d --rm --name crisiscleanup -h crisiscleanup --link postgres -p 127.0.0.1:9005:8005 -v /srv/crisiscleanup/conf:/srv/crisiscleanup/config crisiscleanup
}
stop() {
/usr/bin/docker stop crisiscleanup
}