mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
update gogs
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user