You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.0 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Docker for Gogs
  2. ## Usage
  3. ```
  4. docker pull gogs/gogs
  5. mkdir -p /var/gogs
  6. docker run --name=gogs -p 10022:22 -p 10080:3000 -v /var/gogs:/data gogs/gogs
  7. ```
  8. File will store in local path: `/var/gogs`.
  9. Directory `/var/gogs` keeps Git repoistories and Gogs data:
  10. /var/gogs
  11. |-- git
  12. | `-- gogs-repositories
  13. |-- ssh
  14. | `-- # ssh pub-pri keys for gogs
  15. `---- gogs
  16. |-- conf
  17. |-- data
  18. |-- log
  19. `-- templates
  20. ## SSH Support
  21. In order to support SSH, You need to change `HTTP_PORT` and `SSH_PORT` in `/var/gogs/gogs/conf/app.ini`:
  22. ```
  23. [server]
  24. HTTP_PORT = 3000
  25. SSH_PORT = 10022
  26. ```
  27. Full documentation of settings can be found [here](http://gogs.io/docs/advanced/configuration_cheat_sheet.html).
  28. ## Todo
  29. Install page need support set `SSH_PORT`
  30. ## Problems
  31. If meet error
  32. ```
  33. checkVersion()] [E] Binary and template file version does not match
  34. ```
  35. Run `rm -fr /var/gogs/gogs/templates/` will fix. Remember to backup templates file, If you have some modification.