Initial commit
This commit is contained in:
parent
50a0859318
commit
1768a06a17
4 changed files with 66 additions and 0 deletions
24
files/poste.io.service
Normal file
24
files/poste.io.service
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
[Unit]
|
||||
Description=Poste.io - single container mail servers
|
||||
After=docker.service
|
||||
PartOf=docker.service
|
||||
Requires=docker.service
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/srv/poste.io
|
||||
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
Restart=always
|
||||
RestartSec=15s
|
||||
|
||||
# Clean up after crashes
|
||||
ExecStartPre=-/usr/bin/docker rm -f poste.io
|
||||
|
||||
ExecStart=/usr/bin/docker run -h post.mareshq.com -e "HTTPS=OFF" -e TZ=Europe/Prague --name poste.io --rm -v /srv/poste.io/data:/data -p 25:25 -p 15080:80 -p 15443:443 analogic/poste.io
|
||||
|
||||
ExecStop=/usr/bin/docker stop poste.io
|
||||
|
||||
[Install]
|
||||
WantedBy=docker.service
|
||||
Reference in a new issue