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

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