47 lines
1.1 KiB
Desktop File
47 lines
1.1 KiB
Desktop File
# container-gitea.service
|
|
# autogenerated by Podman 4.9.5
|
|
# Fri Aug 8 21:19:46 UTC 2025
|
|
|
|
[Unit]
|
|
Description=Podman container-gitea.service
|
|
Documentation=man:podman-generate-systemd(1)
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
RequiresMountsFor=%t/containers
|
|
|
|
[Service]
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
|
Restart=on-failure
|
|
TimeoutStopSec=70
|
|
ExecStart=/usr/bin/podman run \
|
|
--cidfile=%t/%n.ctr-id \
|
|
--cgroups=no-conmon \
|
|
--rm \
|
|
--sdnotify=conmon \
|
|
--replace \
|
|
-d \
|
|
--name gitea \
|
|
-p 3000:3000 \
|
|
-v /srv/gitea:/data:Z \
|
|
-e GITEA__server__ROOT_URL=https://git.pp1l.de/ \
|
|
-e GITEA__server__DISABLE_SSH=true \
|
|
-e GITEA__database__DB_TYPE=sqlite3 \
|
|
-e GITEA__database__PATH=/data/gitea/gitea.db \
|
|
-e GITEA__security__INSTALL_LOCK=true \
|
|
-e GITEA__security__INTERNAL_TOKEN=changeme-internal-token \
|
|
-e GITEA__security__SECRET_KEY=changeme-secret \
|
|
-e USER_UID=1000 \
|
|
-e USER_GID=1000 docker.io/gitea/gitea:1.21
|
|
ExecStop=/usr/bin/podman stop \
|
|
--ignore -t 10 \
|
|
--cidfile=%t/%n.ctr-id
|
|
ExecStopPost=/usr/bin/podman rm \
|
|
-f \
|
|
--ignore -t 10 \
|
|
--cidfile=%t/%n.ctr-id
|
|
Type=notify
|
|
NotifyAccess=all
|
|
|
|
[Install]
|
|
WantedBy=default.target
|