Spotter-VM/seeddms/etc/init.d/seeddms

26 lines
417 B
Plaintext
Raw Normal View History

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() {
/usr/bin/docker run -d --rm \
--name seeddms \
-h seeddms \
2018-02-02 17:10:32 +01:00
--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
2018-01-08 15:06:11 +01:00
}
stop() {
/usr/bin/docker stop seeddms
}