24 lines
391 B
Plaintext
Executable File
24 lines
391 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="Mifos X docker container"
|
|
|
|
depend() {
|
|
need docker net
|
|
use dns logger netmount
|
|
after mariadb
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm \
|
|
--name mifosx \
|
|
-h mifosx \
|
|
--link mariadb \
|
|
-p 127.0.0.1:9012:8012 \
|
|
-v /srv/mifosx/conf/context.xml:/srv/tomcat/webapps/fineract-provider/META-INF/context.xml \
|
|
mifosx
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop mifosx
|
|
}
|