2016-04-25 10:34:42 +02:00
|
|
|
gogs
|
|
|
|
====
|
|
|
|
|
|
|
|
[Gogs][1] (Go Git Service) is a painless self-hosted Git service.
|
|
|
|
|
|
|
|
## docker-compose.yml
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
gogs:
|
|
|
|
image: gogs/gogs
|
|
|
|
ports:
|
2016-05-31 15:04:56 +02:00
|
|
|
- "2222:22"
|
|
|
|
- "3000:3000"
|
2016-04-25 10:34:42 +02:00
|
|
|
volumes:
|
|
|
|
- ./data:/data
|
|
|
|
restart: always
|
|
|
|
```
|
|
|
|
|
|
|
|
## up and running
|
|
|
|
|
|
|
|
```
|
|
|
|
$ docker-compose up -d
|
2016-05-05 09:16:57 +02:00
|
|
|
|
2016-05-31 15:04:56 +02:00
|
|
|
$ docker-compose exec gogs vi /data/gogs/conf/app.ini
|
|
|
|
|
|
|
|
$ docker-compose restart
|
|
|
|
|
|
|
|
$ firefox http://localhost:3000/
|
2016-05-05 09:16:57 +02:00
|
|
|
|
|
|
|
$ tree -FL 3 ./data/git/
|
|
|
|
./data/git/
|
|
|
|
├── git -> /data/git
|
|
|
|
└── gogs-repositories/
|
|
|
|
├── root/
|
|
|
|
├── user1/
|
|
|
|
│ ├── project1.git/
|
|
|
|
│ └── project2.git/
|
|
|
|
└── user2/
|
2016-04-25 10:34:42 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
[1]: https://gogs.io/
|