mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
update gogs
This commit is contained in:
parent
2f081433bf
commit
45d0a3186c
@ -9,21 +9,23 @@ gogs
|
||||
gogs:
|
||||
image: gogs/gogs
|
||||
ports:
|
||||
- "22:22"
|
||||
- "80:3000"
|
||||
- "2222:22"
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- ./data:/data
|
||||
restart: always
|
||||
```
|
||||
|
||||
> :warning: Listening on port 22 and 80 may cause problems!
|
||||
|
||||
## up and running
|
||||
|
||||
```
|
||||
$ docker-compose up -d
|
||||
|
||||
$ firefox http://localhost/
|
||||
$ docker-compose exec gogs vi /data/gogs/conf/app.ini
|
||||
|
||||
$ docker-compose restart
|
||||
|
||||
$ firefox http://localhost:3000/
|
||||
|
||||
$ tree -FL 3 ./data/git/
|
||||
./data/git/
|
||||
|
@ -1,8 +1,8 @@
|
||||
gogs:
|
||||
image: gogs/gogs
|
||||
ports:
|
||||
- "22:22"
|
||||
- "80:3000"
|
||||
- "2222:22"
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- ./data:/data
|
||||
restart: always
|
||||
|
Loading…
Reference in New Issue
Block a user