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.2 kB

12 years ago
12 years ago
12 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ### Gogs Install With Docker
  2. #### Gogs With MySQL
  3. 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:
  4. ```
  5. MYSQL_PASSWORD="YOUR_MYSQL_PASSWORD"
  6. MYSQL_RUN_NAME="YOUR_MYSQL_RUN_NAME"
  7. HOST_PORT="YOUR_HOST_PORT"
  8. ```
  9. And run:
  10. ```
  11. cd dockerfiles
  12. ./build.sh
  13. ```
  14. The build might take some time, just be paient. After it finishes, you will receive the message:
  15. ```
  16. 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):
  17. docker run -i -t --link gogs_mysql:db -p 3333:3000 gogs/gogits
  18. ```
  19. Just follow the message, run:
  20. ```
  21. docker run -i -t --link gogs_mysql:db -p 3333:3000 gogs/gogits
  22. ```
  23. Now we have gogs running! Open the browser and navigate to:
  24. ```
  25. http://YOUR_HOST_IP:YOUR_HOST_PORT
  26. ```
  27. Let's 'gogs'!
  28. #### Gogs With PostgreSQL
  29. Installing Gogs with PostgreSQL is nearly the same with installing it with MySQL. What you do is just change the DB_TYPE in build.sh to 'postgres'.
  30. #### Gogs, MySQL With Redis
  31. #### Gogs, MySQL With Memcached
  32. #### Gogs, PostgreSQL With Redis
  33. #### Gogs, PostgreSQL With Memcached