2018-01-02 11:19:00 +01:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
description="KanBoard docker container"
|
|
|
|
|
|
|
|
depend() {
|
2018-02-03 17:34:24 +01:00
|
|
|
need docker net postgres
|
2018-02-01 21:04:01 +01:00
|
|
|
use dns logger netmount postfix
|
2018-01-02 11:19:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2018-01-27 14:08:19 +01:00
|
|
|
/usr/bin/docker run -d --rm \
|
|
|
|
--name kanboard \
|
|
|
|
-h kanboard \
|
2018-02-01 21:04:01 +01:00
|
|
|
--link postfix \
|
2018-01-27 14:08:19 +01:00
|
|
|
--link postgres \
|
2018-02-01 14:55:24 +01:00
|
|
|
-p 127.0.0.1:8009:8009 \
|
2018-01-27 14:08:19 +01:00
|
|
|
-v /srv/kanboard/data:/srv/kanboard/data/files \
|
|
|
|
-v /srv/kanboard/conf/config.php:/srv/kanboard/config.php \
|
|
|
|
kanboard
|
2018-01-02 11:19:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
/usr/bin/docker stop kanboard
|
|
|
|
}
|