2018-01-15 20:05:33 +01:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
description="Postfix docker container"
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
need docker net
|
|
|
|
use dns logger netmount
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2018-01-27 14:08:19 +01:00
|
|
|
/usr/bin/docker run -d --rm \
|
|
|
|
--name postfix \
|
|
|
|
-h postfix \
|
|
|
|
-v /srv/postfix/conf:/etc/postfix \
|
|
|
|
-v /srv/postfix/data:/var/spool/postfix \
|
|
|
|
postfix
|
2018-01-15 20:05:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
/usr/bin/docker stop postfix
|
|
|
|
}
|