2021-01-13 16:36:50 +00:00
|
|
|
[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
|
2021-03-27 23:03:56 +00:00
|
|
|
ExecStart=/bin/podman run --replace --pull never --net internal,%N \
|
|
|
|
--volume /var/lib/container-service/%N:/data:z \
|
|
|
|
--name %N localhost/%N:latest
|
2021-01-13 16:36:50 +00:00
|
|
|
ExecStop=/bin/podman stop --time 10 %N
|
2021-03-27 23:03:56 +00:00
|
|
|
ExecStopPost=/bin/podman rm --force %N
|
2021-01-13 16:36:50 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|