25 lines
419 B
Plaintext
Executable File
25 lines
419 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="KanBoard docker container"
|
|
|
|
depend() {
|
|
need docker net
|
|
use dns logger netmount
|
|
after postgres
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm \
|
|
--name kanboard \
|
|
-h kanboard \
|
|
--link postgres \
|
|
-p 127.0.0.1:9009:8009 \
|
|
-v /srv/kanboard/data:/srv/kanboard/data/files \
|
|
-v /srv/kanboard/conf/config.php:/srv/kanboard/config.php \
|
|
kanboard
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop kanboard
|
|
}
|