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

25 lines
437 B
Plaintext
Raw Normal View History

2018-01-24 15:18:55 +01:00
#!/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:8014:8014 \
2018-01-27 14:35:16 +01:00
-v /srv/ushahidi/conf/env:/srv/ushahidi/platform/.env \
-v /srv/ushahidi/data:/srv/ushahidi/platform/application/media/uploads \
ushahidi
2018-01-24 15:18:55 +01:00
}
stop() {
/usr/bin/docker stop ushahidi
}