home-pods/container-gitea-app.service

38 lines
1.2 KiB
SYSTEMD
Raw Permalink Normal View History

2022-02-14 18:11:23 +01:00
[Unit]
Description=Podman container-gitea-app.service
Wants=network-online.target
After=network-online.target
BindsTo=pod-gitea.service
After=pod-gitea.service
Requires=container-gitea-postgres.service
After=container-gitea-postgres.service
RequiresMountsFor=%t/containers
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
TimeoutStopSec=70
ExecStartPre=/bin/rm -f %t/%n.ctr-id
ExecStart=/usr/bin/podman run --cidfile=%t/%n.ctr-id --cgroups=no-conmon --rm \
--pod-id-file %t/pod-gitea.pod-id \
--sdnotify=conmon --replace -d \
--name=gitea-app \
2022-08-21 10:59:37 +02:00
-v gitea:/data:Z \
2022-02-14 18:11:23 +01:00
-v /home/git/.ssh/:/data/git/.ssh:z \
2022-08-21 10:59:37 +02:00
--tz=Europe/Brussels \
#-v /etc/timezone:/etc/timezone:ro \
#-v /etc/localtime:/etc/localtime:ro \
2023-05-21 17:53:15 +02:00
-e USER_UID=1002 -e USER_GID=1002 \
2022-02-14 18:11:23 +01:00
-e GITEA__database__DB_TYPE=postgres -e GITEA__database__HOST=localhost \
-e GITEA__database__NAME=gitea -e GITEA__database__USER=gitea -e GITEA__database__PASSWD=gitea \
--label "io.containers.autoupdate=registry" \
docker.io/gitea/gitea:latest
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
Type=notify
NotifyAccess=all
[Install]
2022-08-21 10:59:37 +02:00
WantedBy=default.target