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