aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorAstound <kirito@disroot.org>2024-08-05 02:14:45 +0800
committerAstound <kirito@disroot.org>2024-08-05 02:14:45 +0800
commitb19258aea0462a75938a19d603268698a6b94677 (patch)
tree3fb090d0869bb4cc6ff702464c8d67242c0ccc4b /README.md
parentcfb87065755ca10e4ef3382f0ef5ca1c42fc2be3 (diff)
downloadgitolite-cgit-docker-b19258aea0462a75938a19d603268698a6b94677.tar.lz
gitolite-cgit-docker-b19258aea0462a75938a19d603268698a6b94677.tar.xz
gitolite-cgit-docker-b19258aea0462a75938a19d603268698a6b94677.zip
Make .gitolite.rc in runtime
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 022c8fa..62205fe 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ $ docker pull rusian/gitolite-cgit
2. Run the image with provided environment:
```console
-$ docker run -e SSH_KEY="$(cat ~/.ssh/id_ed25519.pub)" -e SSH_KEY_NAME="$(whoami)" -p 22:22 -p 80:80 -p 9418:9418 -v repo:/var/lib/git/repositories rusian/gitolite-cgit
+$ docker run -e SSH_KEY="$(cat ~/.ssh/id_ed25519.pub)" -e SSH_KEY_NAME="$(whoami)" -p 22:22 -p 80:80 -p 9418:9418 -v repo:/var/lib/git rusian/gitolite-cgit
```
### Environment
@@ -37,7 +37,7 @@ $ docker run -e SSH_KEY="$(cat ~/.ssh/id_ed25519.pub)" -e SSH_KEY_NAME="$(whoami
### Volume
-- `/var/lib/git/repositories`: gitolite home folder, store all repositories like `gitolite-admin`
+- `/var/lib/git`: gitolite home folder, store all repositories like `gitolite-admin`
- `/etc/ssh/`: store all generated SSH server key
### How to interact with git server
@@ -125,7 +125,7 @@ services:
env_file: config.env
volumes:
- git:/etc/ssh
- - git:/var/lib/git/repositories
+ - git:/var/lib/git
ports:
- 22:22
- 80:80
@@ -161,7 +161,7 @@ services:
env_file: config.env
volumes:
- git:/etc/ssh
- - git:/var/lib/git/repositories
+ - git:/var/lib/git
- ./cgitrc:/etc/cgitrc
ports:
- 22:22