21 lines
1.1 KiB
Desktop File
21 lines
1.1 KiB
Desktop File
[Unit]
|
|
Description=gitea.service
|
|
Wants=network-online.target
|
|
After=NetworkManager.service network.target network-online.target
|
|
RequiresMountsFor=/var/lib/containers/storage /var/run/containers/storage
|
|
|
|
# %E is "the XDG_CONFIG path"
|
|
# docker run --name gitea --restart always -v gitea-data:/data:Z -v gitea-ssh:/data/git/.ssh:Z -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro -e USER_UID=1000 -e USER_GID=1000 -e DISABLE_SSH=false -e START_SSH_SERVER=true -e SSH_PORT=2222 -e SSH_LISTEN_PORT=2222 -p 3000:3000 -p 2222:2222 gitea/gitea:1.21
|
|
[Service]
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
|
Restart=on-failure
|
|
TimeoutStopSec=70
|
|
ExecStart=/usr/bin/podman run -d --name gitea --restart always -v gitea-data:/data:Z -v gitea-ssh:/data/git/.ssh:Z -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro -e USER_UID=1000 -e USER_GID=1000 -e DISABLE_SSH=false -e START_SSH_SERVER=true -e SSH_PORT=2222 -e SSH_LISTEN_PORT=2222 -p 3000:3000 -p 2222:2222 gitea/gitea:1.21
|
|
ExecStop=/usr/bin/podman stop gitea
|
|
ExecStopPost=/usr/bin/podman rm gitea
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
|
|
[Install]
|
|
WantedBy=default.target
|