28 lines
483 B
Plaintext
Executable File
28 lines
483 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="KanBoard docker container"
|
|
|
|
depend() {
|
|
need docker net postgres
|
|
use dns logger netmount postfix
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm \
|
|
--name kanboard \
|
|
-h kanboard \
|
|
--link postfix \
|
|
--link postgres \
|
|
-v /srv/kanboard/data:/srv/kanboard/data/files \
|
|
-v /srv/kanboard/conf/config.php:/srv/kanboard/config.php \
|
|
kanboard
|
|
}
|
|
|
|
start_post() {
|
|
/usr/local/bin/spotter-appmgr update-hosts kanboard
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop kanboard
|
|
}
|