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.

39 lines
1.2 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. # Bare Git
  2. ## Setup Server
  3. ### Docker
  4. The official container and documentation was made by [jkarlos](https://hub.docker.com/r/jkarlos/git-server-docker).
  5. #### Volumes
  6. Set the following volumes with the -v tag.
  7. | Volume-Name | Container mount | Description |
  8. | ------------------ | ------------------- | ------------------------- |
  9. | `git-server_repos` | `/git-server/repos` | storage for git repos |
  10. | `git-server_keys` | `/git-server/keys` | storage for user ssh keys |
  11. #### Ports
  12. Set the following ports with the -p tag.
  13. | Container Port | Recommended outside port | Protocol | Description |
  14. | -------------- | ------------------------ | -------- | ------------------------------------- |
  15. | `22` | `2222` | TCP | ssh port for accessing the git server |
  16. #### Rebuild
  17. ```shell
  18. #!/bin/sh
  19. docker stop git-server
  20. docker rm git-server
  21. docker pull jkarlos/git-server-docker:latest
  22. docker run --name git-server \
  23. --restart unless-stopped \
  24. -p 2222:22 \
  25. -v git-server_repos:/git-server/repos \
  26. -v git-server_keys:/git-server/keys \
  27. -d jkarlos/git-server-docker
  28. ```