22 lines
322 B
Plaintext
Executable File
22 lines
322 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="Postfix docker container"
|
|
|
|
depend() {
|
|
need docker net
|
|
use dns logger netmount
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm \
|
|
--name postfix \
|
|
-h postfix \
|
|
-v /srv/postfix/conf:/etc/postfix \
|
|
-v /srv/postfix/data:/var/spool/postfix \
|
|
postfix
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop postfix
|
|
}
|