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

24 lines
363 B
Plaintext
Executable File

#!/sbin/openrc-run
description="Ushahidi docker container"
depend() {
need docker net
use dns logger netmount
after mariadb
}
start() {
/usr/bin/docker run -d --rm \
--name ushahidi \
-h ushahidi \
--link mariadb \
-p 127.0.0.1:9014:8014 \
-v /srv/ushahidi/conf/env:/srv/ushahidi/platform/.env \
ushahidi
}
stop() {
/usr/bin/docker stop ushahidi
}