scanservjs: Initial version of role
This commit is contained in:
parent
f0656502af
commit
94dc909bd9
5 changed files with 67 additions and 0 deletions
17
roles/scanservjs/templates/scanservjs-container.service.j2
Normal file
17
roles/scanservjs/templates/scanservjs-container.service.j2
Normal file
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=Scanserv Container
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
User=scanserv
|
||||
ExecStartPre=/usr/bin/podman pull docker.io/sbs20/scanservjs:{{ scanservjs_version }}
|
||||
ExecStart=/usr/bin/podman run \
|
||||
--rm -p 127.0.0.1:8006:8080 \
|
||||
--name scanservjs \
|
||||
docker.io/sbs20/scanservjs:{{ scanservjs_version }}
|
||||
ExecStop=/usr/bin/podman stop --ignore scanservjs
|
||||
ExecStopPost=/usr/bin/podman rm -f --ignore scanservjs
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue