来源
https://github.com/gogs/gogs/tree/main/docker
https://www.composerize.com/
部署
1 2 3 4 5 6 7 8 9 10
| version: '3.3' services: gogs: container_name: gogs ports: - '11022:22' - '11880:3000' volumes: - './gogs:/data' image: gogs/gogs
|
- mkdir gogs
- cd gogs
- nano -K docker-compose.yml
- # dos2unix docker-compose.yml
- docker-compose up -d
反代
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| [common] server_addr = frp.limour.top server_port = 21000 tls_enable = true token = *** user = rasp_app
[gogs_ssh] type = tcp local_ip = 127.0.0.1 local_port = 11022 remote_port = 21423
[gogs_web] type = http local_ip = 127.0.0.1 local_port = 11880 use_compression = true subdomain = gogs
|
1 2 3 4 5 6 7 8 9
| version: '3.3' services: frpc: container_name: frpc_app restart: always volumes: - '/home/pi/frp_app/frpc.ini:/frp/frpc.ini' network_mode: host image: stilleshan/frpc
|
演示
https://gogs.frp.limour.top/limour/qndxx