18 lines
368 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
use dns logger netmount
after postgres
}
start() {
2018-01-18 13:59:24 +01:00
/usr/bin/docker run -d --rm --name gnuhealth -h gnuhealth --link postgres -p 127.0.0.1:9008: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
}