summaryrefslogtreecommitdiffstats
path: root/docker/README.md
blob: a9792da253ac754904bc83c8a3ebe68232b51efa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Docker for gogs

## Usage
```
docker pull codeskyblue/docker-gogs

mkdir -p /var/gogs
docker run --name=gogs -d -p 10022:22 -p 10080:3000 -v /var/gogs:/data codeskyblue/docker-gogs
```

File will store in local path: `/var/gogs`

Directory `/var/gogs` keeps git repos and gogs data

    /var/gogs
    ├── git
    │   └── gogs-repositories
    |-- ssh
    |    `-- # ssh pub-pri keys for gogs
    └── gogs
        ├── conf
        ├── data
        ├── log
        └── templates