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

57 lines
1.1 KiB

10 years ago
10 years ago
  1. ### Gogs Install With Docker
  2. Deply gogs in [Docker](http://www.docker.io/) is just as easy as eating a pie, what you do is just open the `dockerfiles/build.sh` file, replace the confis:
  3. ```
  4. MYSQL_PASSWORD="YOUR_MYSQL_PASSWORD"
  5. MYSQL_RUN_NAME="YOUR_MYSQL_RUN_NAME"
  6. HOST_PORT="YOUR_HOST_PORT"
  7. ```
  8. And run:
  9. ```
  10. cd dockerfiles
  11. ./build.sh
  12. ```
  13. The build might take some time, just be paient. After it finishes, you will receive the message:
  14. ```
  15. Now we have the MySQL image(running) and gogs image, use the follow command to start gogs service( the content might be different, according to your own configs):
  16. docker run -i -t --link gogs_mysql:db -p 3333:3000 gogs/gogits
  17. ```
  18. Just follow the message, run:
  19. ```
  20. docker run -i -t --link gogs_mysql:db -p 3333:3000 gogs/gogits
  21. ```
  22. Now we have gogs running! Open the browser and navigate to:
  23. ```
  24. http://YOUR_HOST_IP:YOUR_HOST_PORT
  25. ```
  26. Let's 'gogs'!
  27. #### Gogs With MySQL
  28. #### Gogs With PostgreSQL
  29. #### Gogs, MySQL With Redis
  30. #### Gogs, MySQL With Memcached
  31. #### Gogs, PostgreSQL With Redis
  32. #### Gogs, PostgreSQL With Memcached