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

24 lines
405 B
Plaintext
Raw Normal View History

2017-12-29 16:31:48 +01:00
#!/sbin/openrc-run
description="GNU Health docker container"
depend() {
need docker net postgres
2018-02-03 11:20:40 +01:00
use dns logger netmount postfix
2017-12-29 16:31:48 +01:00
}
start() {
/usr/bin/docker run -d --rm \
--name gnuhealth \
-h gnuhealth \
2018-02-03 11:20:40 +01:00
--link postfix \
--link postgres \
-p 127.0.0.1:8008:8008 \
-v /srv/gnuhealth/conf:/srv/gnuhealth/gnuhealth/tryton/server/config \
gnuhealth
2017-12-29 16:31:48 +01:00
}
stop() {
/usr/bin/docker stop gnuhealth
}