mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 05:56:14 +01:00
Add an important note about mapping the ssh port on the container to the host
This commit is contained in:
parent
7ef9a05588
commit
f36c82c3b3
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,8 @@ $ docker run --name=gogs -p 10022:22 -p 10080:3000 -v /var/gogs:/data gogs/gogs
|
||||||
$ docker start gogs
|
$ docker start gogs
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note: It is important to map the Gogs ssh service from the container to the host and set the appropriate SSH Port and URI settings when setting up Gogs for the first time. To access and clone Gogs Git repositories with the above configuration you would use: `git clone ssh://git@hostname:10022/username/myrepo.git` for example.
|
||||||
|
|
||||||
Files will be store in local path `/var/gogs` in my case.
|
Files will be store in local path `/var/gogs` in my case.
|
||||||
|
|
||||||
Directory `/var/gogs` keeps Git repositories and Gogs data:
|
Directory `/var/gogs` keeps Git repositories and Gogs data:
|
||||||
|
|
Loading…
Reference in a new issue