25 lines
391 B
Plaintext
Executable File
25 lines
391 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="SeedDMS docker container"
|
|
|
|
depend() {
|
|
need docker net
|
|
use dns logger netmount
|
|
after postgres
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm \
|
|
--name seeddms \
|
|
-h seeddms \
|
|
--link postgres \
|
|
-p 127.0.0.1:9010:8010 \
|
|
-v /srv/seeddms/data:/srv/seeddms/data \
|
|
-v /srv/seeddms/conf:/srv/seeddms/www/conf \
|
|
seeddms
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop seeddms
|
|
}
|