These are some guides for various use.
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.

78 lines
3.3 KiB

  1. # Gitea
  2. This is a dockerized version of an gitea server.
  3. The official container and documentation was made by [gitea](https://hub.docker.com/gitea/gitea).
  4. This docker-rebuild is made up by a ```docker-compose.yml``` file.
  5. The services in this files are explained seperately.
  6. ## Gitea
  7. ### Environment-variables
  8. Set the following environment-variables in the ```environment:``` section of the docker-compose file.
  9. | Name | Usage | Default |
  10. | ------------------- | ------------------------------ | ------- |
  11. | USER_UID | User userid to run gitea | |
  12. | USER_GID | User groupid to run gitea | |
  13. | DB_TYPE | Specify database type | |
  14. | DB_HOST | Specify database host and port | |
  15. | DB_NAME | Specify Name of the database | |
  16. | DB_USER | Username for the database | |
  17. | DB_PASSWD | Password for the database | |
  18. ### Volumes
  19. Set the following volumes in the ```volumes:``` section of the docker-compose file.
  20. | Volume-Name | Container mount | Description |
  21. | ---------------- | ---------------------- | ------------------------------ |
  22. | data | /data | storage for data of git server |
  23. | /etc/timezone | /etc/timezone:ro | link timezone |
  24. | /etc/localtime | /etc/localtime | link localtime |
  25. ### Ports
  26. Set the following ports in the ```ports:``` section.
  27. | Container Port | Recommended outside port | Protocol | Description |
  28. | -------------- | ------------------------ | -------- | ---------------------- |
  29. | 3000 | 3000 | TCP | WebUI |
  30. | 22 | 222 | TCP | ssh port of git server |
  31. ### Networks
  32. Set the following networks in the ```networks:`` section of the docker-compose file.
  33. | Name | Usage |
  34. | ----- | --------------------- |
  35. | gitea | connect db with gitea |
  36. ### Dependencies
  37. Set the following dependencies in the ```depends_on:``` section of the docker-compose file.
  38. | Name | Usage |
  39. | ----- | --------------------- |
  40. | db | Ensure db is running |
  41. ## MySql
  42. ### Environment-variables
  43. Set the following environment-variables in the ```environment:``` section of the docker-compose file.
  44. | Name | Usage | Default |
  45. | ------------------- | ----------------------------- | ------- |
  46. | MYSQL_ROOT_PASSWORD | set the mysql admin password | |
  47. | MYSQL_USER | set the mysql username | |
  48. | MYSQL_PASSWORD | set the mysql user password | |
  49. | MYSQL_Database | specify mysql database to use | |
  50. ### Volumes
  51. Set the following volumes in the ```volumes:``` section of the docker-compose file.
  52. | Volume-Name | Container mount | Description |
  53. | ---------------- | ---------------------- | ---------------------------- |
  54. | mysql | /var/lib/mysql | storage for owncloud data |
  55. ### Networks
  56. Set the following networks in the ```networks:`` section of the docker-compose file.
  57. | Name | Usage |
  58. | ----- | --------------------- |
  59. | gitea | connect db with gitea |