mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
Alex Palaistras
d9f675817e
This contains the culmination of work done privately for a few months, and is intended to be a solid basis for other peoples' experimentations with setting up single-node, home-server setups using Fedora CoreOS.
19 lines
792 B
Desktop File
19 lines
792 B
Desktop File
[Unit]
|
|
Description=Git server over SSH
|
|
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 10000 --group 10000 -d /var/lib/container-service/%N
|
|
ExecStartPre=/bin/podman create --replace --pull never --net internal,%N \
|
|
--cap-add AUDIT_WRITE \
|
|
--publish 468:22 \
|
|
--volume /var/lib/container-service/%N:/home/git:z \
|
|
--name %N localhost/%N:latest
|
|
ExecStart=/bin/podman start --attach %N
|
|
ExecStop=/bin/podman stop --time 10 %N
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|