gitGogs

docker ARM架构 https://hub.docker.com/r/gogs/gogs-rpi
https://hub.docker.com/r/gogs/gogs-rpi/tags
Gogs on a Pi3 https://peterlavalle.github.io/post/pi3-docker-gogs/
https://peterlavalle.github.io/
配置文件 https://gogs.io/docs/advanced/configuration_cheat_sheet.html
https://gogs.io/docs/intro

docker on pi3

https://peterlavalle.github.io/post/pi3-docker-gogs/

1
2
> $ docker pull gogs/gogs-rpi
>
  1. 1
    2
    >    $ sudo mkdir /var/gogs-pi3
    >
  • here /var/gogs-pi3 is just a host folder that I want GoGS to write to
  1. 1
    2
    >    $ docker create --name=gogs-rpi --restart always -p 3022:22 -p 3000:3000 -v /var/gogs-pi3:/data gogs/gogs-rpi
    >
  • here /var/gogs-pi3 is my earlier host folder
  • /data is the folder that the gogs/gogs-rpi image expects to write to; I don’t know/care how to change it. (Sorry)
  1. $ docker start gogs-rpi

config

DOMAIN 服务器域名 localhost-> 192.168.0.169
APP_URL http://192.168.0.169:10080/

gogs-rpi for arm

1
2
3
4
5
6
7
8
9


sudo docker pull gogs/gogs-rpi

sudo docker create --name=gogs2 --restart always -p 10022:22 -p 10080:3000 -v /var/gogs:/data gogs/gogs-rpi

--restart string Restart policy to apply when a container exits (default "no")

sudo docker start mygogs