2025-02-22 18:23:55 +00:00
|
|
|
[Unit]
|
|
|
|
Description=baikal
|
|
|
|
|
|
|
|
[Container]
|
|
|
|
Image={{ baikal.container_image }}
|
|
|
|
AutoUpdate=registry
|
|
|
|
PublishPort={{ baikal.port }}:80/tcp
|
|
|
|
Volume={{ baikal.base_directory }}/{{ baikal.data_directory }}:/var/www/baikal/Specific:Z
|
|
|
|
Volume={{ baikal.base_directory }}/{{ baikal.config_directory }}:/var/www/baikal/config:Z
|
2025-02-23 00:26:57 +02:00
|
|
|
Environment="MSMTPRC=defaults\n\
|
|
|
|
auth on\n\
|
|
|
|
tls on\n\
|
|
|
|
tls_trust_file /etc/ssl/certs/ca-certificates.crt\n\
|
|
|
|
account default\n\
|
|
|
|
host host\n\
|
|
|
|
port 587\n\
|
|
|
|
from baikal@example.com\n\
|
|
|
|
user user\n\
|
|
|
|
password pass\n\
|
|
|
|
"
|
2025-02-22 18:23:55 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
# Inform systemd of additional exit status
|
|
|
|
SuccessExitStatus=0 143
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
# Start by default on boot
|
|
|
|
WantedBy=default.target
|