2021-01-13 16:36:50 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Git server over SSH
|
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
|
|
|
|
Restart=on-failure
|
|
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
|
|
|
ExecStart=/bin/podman run --replace --pull never --net internal --name %N \
|
|
|
|
--sdnotify=conmon --cap-add AUDIT_WRITE \
|
2021-03-27 23:03:56 +00:00
|
|
|
--publish 468:22 \
|
2021-06-30 21:41:32 +00:00
|
|
|
--volume %N:/var/lib/git:z \
|
|
|
|
--volume %N-ssh:/etc/ssh/keys: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
|