Gogs.io on Rocky Linux

Obtain the gogs.io docker image.

mkdir -p ~/gogs
docker run -d --name gogs01 -p 10022:22 -p 10880:3000 -v ~/gogs:/data:Z gogs/gogs
sudo firewall-cmd --add-port=10880/tcp --add-port=10022/tcp
sudo firewall-cmd --add-port=10880/tcp --add-port=10022/tcp --permanent
sudo firewall-cmd --list-ports

Go to http://localhost:10880 to access the user interface. Choose SQLite3 as the database. Add an admin user by filling out the Admin Account Settings.

The Git repos will be accessible thought SSH on port 10022.

NTP

make sure the time on the server is accurate:

sudo dnf install chrony
sudo systemctl enable --now chronyd