1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-24 05:16:44 +02:00
dockerfiles/gogs/README.md

40 lines
617 B
Markdown
Raw Normal View History

2016-04-25 16:34:42 +08:00
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
2016-05-05 15:16:57 +08:00
$ firefox http://localhost/
$ tree -FL 3 ./data/git/
./data/git/
├── git -> /data/git
└── gogs-repositories/
├── root/
├── user1/
│   ├── project1.git/
│   └── project2.git/
└── user2/
2016-04-25 16:34:42 +08:00
```
[1]: https://gogs.io/