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:
|
gogs:
|
||||||
image: gogs/gogs
|
image: gogs/gogs
|
||||||
ports:
|
ports:
|
||||||
- "22:22"
|
- "2222:22"
|
||||||
- "80:3000"
|
- "3000:3000"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
restart: always
|
restart: always
|
||||||
```
|
```
|
||||||
|
|
||||||
> :warning: Listening on port 22 and 80 may cause problems!
|
|
||||||
|
|
||||||
## up and running
|
## up and running
|
||||||
|
|
||||||
```
|
```
|
||||||
$ docker-compose up -d
|
$ 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/
|
$ tree -FL 3 ./data/git/
|
||||||
./data/git/
|
./data/git/
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
gogs:
|
gogs:
|
||||||
image: gogs/gogs
|
image: gogs/gogs
|
||||||
ports:
|
ports:
|
||||||
- "22:22"
|
- "2222:22"
|
||||||
- "80:3000"
|
- "3000:3000"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
restart: always
|
restart: always
|
||||||
|
Loading…
Reference in New Issue
Block a user