2018-01-08 15:06:11 +01:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
description="SeedDMS docker container"
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
need docker net
|
2018-02-02 17:10:32 +01:00
|
|
|
use dns logger netmount postfix
|
2018-01-08 15:06:11 +01:00
|
|
|
after postgres
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2018-01-27 14:08:19 +01:00
|
|
|
/usr/bin/docker run -d --rm \
|
|
|
|
--name seeddms \
|
|
|
|
-h seeddms \
|
2018-02-02 17:10:32 +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:8010:8010 \
|
2018-01-27 14:08:19 +01:00
|
|
|
-v /srv/seeddms/data:/srv/seeddms/data \
|
|
|
|
-v /srv/seeddms/conf:/srv/seeddms/www/conf \
|
|
|
|
seeddms
|
2018-01-08 15:06:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
/usr/bin/docker stop seeddms
|
|
|
|
}
|