2023-08-12 16:14:04 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Gitea Self-Hosted Git Service
|
|
|
|
Wants=container-build@%N.service container-volume@%N.service lldap.service
|
|
|
|
After=container-build@%N.service container-volume@%N.service lldap.service
|
|
|
|
|
|
|
|
[Container]
|
|
|
|
ContainerName=%N
|
|
|
|
EnvironmentFile=%E/coreos-home-server/%N/%N.env
|
2023-10-29 16:44:05 +00:00
|
|
|
HealthCmd=timeout 5s curl --fail --silent --show-error localhost:8080/api/healthz > /dev/null
|
2023-08-12 16:14:04 +00:00
|
|
|
Image=localhost/%N:latest
|
|
|
|
Network=internal
|
2023-10-29 16:44:05 +00:00
|
|
|
PodmanArgs=--sdnotify=healthy
|
2023-08-12 16:14:04 +00:00
|
|
|
PublishPort=7920:7920
|
|
|
|
Volume=%N:/var/lib/%N:z
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|