mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-29 18:21:24 +00:00
28 lines
360 B
Markdown
28 lines
360 B
Markdown
gogs
|
|
====
|
|
|
|
[Gogs][1] (Go Git Service) is a painless self-hosted Git service.
|
|
|
|
## docker-compose.yml
|
|
|
|
```yaml
|
|
gogs:
|
|
image: gogs/gogs
|
|
ports:
|
|
- "22:22"
|
|
- "80:3000"
|
|
volumes:
|
|
- ./data:/data
|
|
restart: always
|
|
```
|
|
|
|
> :warning: Listening on port 22 and 80 may cause problems!
|
|
|
|
## up and running
|
|
|
|
```
|
|
$ docker-compose up -d
|
|
```
|
|
|
|
[1]: https://gogs.io/
|