23 lines
618 B
Django/Jinja
23 lines
618 B
Django/Jinja
[Unit]
|
|
Description=RTL Web App
|
|
|
|
[Container]
|
|
Image={{ registry_url }}/rtl:{{ rtl_version }}
|
|
PodmanArgs=--pod bitcoin-pod
|
|
|
|
# Use volume
|
|
Volume=/home/{{ansible_user}}/vol/rtl/data:/RTL/data:Z
|
|
Volume=/home/{{ansible_user}}/vol/rtl/RTL-Config.json:/RTL/RTL-Config.json:Z
|
|
|
|
[Service]
|
|
# Restart service when sleep finishes
|
|
Restart=always
|
|
# Extend Timeout to allow time to pull the image
|
|
TimeoutStartSec=900
|
|
# ExecStartPre flag and other systemd commands can go here, see systemd.unit(5) man page.
|
|
# ExecStartPre=/usr/share/mincontainer/setup.sh
|
|
|
|
[Install]
|
|
# Start by default on boot
|
|
WantedBy=multi-user.target default.target
|