24 lines
386 B
Plaintext
Executable File
24 lines
386 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="GNU Health docker container"
|
|
|
|
depend() {
|
|
need docker net
|
|
use dns logger netmount
|
|
after postgres
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm \
|
|
--name gnuhealth \
|
|
-h gnuhealth \
|
|
--link postgres \
|
|
-p 127.0.0.1:8008:8008 \
|
|
-v /srv/gnuhealth/conf:/srv/gnuhealth/gnuhealth/tryton/server/config \
|
|
gnuhealth
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop gnuhealth
|
|
}
|