blob: b78ccafceb4cca25ba2e2646a48b85930b08c226 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
[Unit]
Description=DAViCal Docker container
Requires=network.target docker.service watchtower.service
After=watchtower.service
[Service]
# Don't restart - it will conflict with watchtower.
Restart=no
# Start with removing old images
ExecStartPre=-/usr/bin/docker rm -f davical
ExecStart=/usr/bin/docker run --rm \
--name davical \
--env-file /etc/systemd/system/davical.service.d/env \
--publish 2203:80 \
dennis/davical:v0.7
ExecStop=/usr/bin/docker stop -t 2 davical
[Install]
WantedBy=default.target
|