2021-01-13 16:36:50 +00:00
|
|
|
[Unit]
|
|
|
|
Description=MariaDB SQL Database
|
2021-08-14 21:31:02 +00:00
|
|
|
Wants=container-build@%N.service container-volume@%N.service
|
|
|
|
After=container-build@%N.service container-volume@%N.service
|
2021-01-13 16:36:50 +00:00
|
|
|
|
|
|
|
[Service]
|
2021-08-14 21:28:28 +00:00
|
|
|
Type=notify
|
|
|
|
NotifyAccess=all
|
2021-08-28 18:16:29 +00:00
|
|
|
SyslogIdentifier=%N
|
2021-08-14 21:28:28 +00:00
|
|
|
Restart=on-failure
|
|
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
2021-08-28 18:16:29 +00:00
|
|
|
ExecStart=/bin/podman run --replace --name %N --sdnotify=conmon \
|
2021-08-14 21:28:28 +00:00
|
|
|
--env-file %E/coreos-home-server/%N/%N.env \
|
2021-06-27 11:52:47 +00:00
|
|
|
--volume %N:/var/lib/mysql:z \
|
|
|
|
localhost/%N:latest
|
2021-08-14 21:28:28 +00:00
|
|
|
ExecStop=/bin/podman stop --ignore --time 10 %N
|
|
|
|
ExecStopPost=/bin/podman rm --ignore --force %N
|
2021-01-13 16:36:50 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|