1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

update gogs

This commit is contained in:
kev 2016-05-31 21:04:56 +08:00
parent 2f081433bf
commit 45d0a3186c
2 changed files with 9 additions and 7 deletions

View File

@ -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/

View File

@ -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