bitb0x/roles/apps/templates/caddy/caddy-node.container.j2
2024-02-19 10:51:38 -06:00

23 lines
574 B
Django/Jinja

[Unit]
Description=Caddy Node
[Container]
# Use the centos image
Image={{ registry_url }}/caddy:{{ caddy_version }}
#Environment=RPCAUTH={{ bitcoin_rpcauth }}
# Use volume
Volume=/home/{{ansible_user}}/vol/caddy:/data: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