Gogs' goal is to create the simplest, fastest and easiest way to build a self-service Git service.
gogs official website: https://gogs.io/
Github address: https://github.com/gogs/gogs/tree/main/docker
docker install gogs service
docker pull gogs/gogs
Start gogs container
docker run --name=gogs -p 122:22 -p 3000:3000 -v /var/gogs:/data gogs/gogs
Configure gogs, the default port is3000
Follow the steps to install the required components. For the first database, select the database installed on the host:
Note: If you use MySQL, please use the INNODB engine and the utf8_general_ci character set; the localhost here represents the address of the host machine, or it can be changed to the server IP, because the browser accesses the page through the service IP, and the internal localhost represents the local host. machine address.
After clicking install, the following page will appear. This is normal because data applications are required.
Enter the server address and port to refresh again, enter gogs as follows
After registering an account, you can implement code management. All in Chinese, very easy to use.
Create user
log in page
Go to homepage
Gogs is a minimalist git autonomous service that does not currently support API remote control, but can complete most code management.