summaryrefslogtreecommitdiff
path: root/etherpad.service
blob: d6196af8f8647db99a23d7715238c544ee008bbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[Unit]
Description = Etherpad container
After = network.target
ConditionPathExists = /srv/etherpad

[Service]
Type = simple
ExecStartPre = -/usr/bin/podman stop etherpad

User = etherpad
Group = etherpad

ExecStart = /usr/bin/podman run \
	--rm \
	--name etherpad \
	--net host \
	-v /srv/etherpad/var:/opt/etherpad/var \
	localhost/etherpad:latest

Restart = always

[Install]
WantedBy = default.target