mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:50 +02:00
646 B
646 B
gogs
Gogs (Go Git Service) is a painless self-hosted Git service.
docker-compose.yml
gogs:
image: gogs/gogs
ports:
- "2222:22"
- "3000:3000"
volumes:
- ./data:/data
restart: always
up and running
$ docker-compose up -d
$ docker-compose exec gogs vi /data/gogs/conf/app.ini
$ docker-compose restart
$ firefox http://localhost:3000/
$ tree -FL 3 ./data/git/
./data/git/
├── git -> /data/git
└── gogs-repositories/
├── root/
├── user1/
│ ├── project1.git/
│ └── project2.git/
└── user2/