mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 21:50:46 +00:00
Alex Palaistras
aafa8d9f12
This will help make subsequent synchronization with hosts easier, as systemd files and potential dropins are guarnateed to exist under a certain hierarchy that can be dropped as-is into host configuration directories.
17 lines
680 B
Desktop File
17 lines
680 B
Desktop File
[Unit]
|
|
Description=Redis Key-Value Store
|
|
Wants=container-build@%N.service container-network@%N.service container-network@internal.service
|
|
After=container-build@%N.service container-network@%N.service container-network@internal.service
|
|
|
|
[Service]
|
|
Restart=always
|
|
ExecStartPre=/bin/install --owner 999 --group 1000 -d /var/lib/container-service/%N
|
|
ExecStartPre=/bin/podman create --replace --pull never --net internal,%N \
|
|
--volume /var/lib/container-service/%N:/data:z \
|
|
--name %N localhost/%N:latest
|
|
ExecStart=/bin/podman start --attach %N
|
|
ExecStop=/bin/podman stop --time 10 %N
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|