update podman rootless gitea docs
All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 53s

This commit is contained in:
2025-09-07 15:15:28 -04:00
parent 9e83048248
commit 4832b283bb

View File

@@ -44,22 +44,13 @@
```bash ```bash
useradd gitea useradd gitea
su - gitea
ssh-keygen
exit
cp ~/.ssh/authorized_keys /home/gitea/.ssh/authorized_keys
chown gitea:gitea /home/gitea/.ssh/authorized_keys
loginctl enable-linger $(id -u gitea) loginctl enable-linger $(id -u gitea)
``` systemctl --user --machine=gitea@.host enable podman-restart
systemctl --user --machine=gitea@.host enable --now podman.socket
SSH into the server as gitea su -l gitea
mkdir -p .config/containers/systemd
```bash
systemctl --user enable podman-restart
systemctl --user enable --now podman.socket
mkdir -p ~/.config/containers/systemd
mkdir data config postgres mkdir data config postgres
exit
``` ```
### Convert Compose to Quadlet ### Convert Compose to Quadlet
@@ -94,17 +85,21 @@ podman unshare
# Create the volumes # Create the volumes
mkdir gitea_data mkdir gitea_data
chown -R 1000:1000 gitea_data
mkdir gitea_etc mkdir gitea_etc
chown -R 1000:1000 gitea_etc
exit exit
``` ```
Now launch the service. The first user you register will be the admin. Now launch the service. The first user you register will be the admin.
```bash ```bash
ssh gitea systemctl --user daemon-reload # Create a systemctl viable shell
ssh gitea systemctl --user restart gitea postgres machinectl shell gitea@
systemctl --user daemon-reload
systemctl --user restart gitea postgres
# Enables auto-update service which will pull new container images automatically every day # Enables auto-update service which will pull new container images automatically every day
ssh gitea systemctl --user enable --now podman-auto-update.timer systemctl --user enable --now podman-auto-update.timer
``` ```
### Upgrade Quadlets ### Upgrade Quadlets