增加备份目录

This commit is contained in:
chinky 2018-07-09 08:30:25 +08:00
parent 1cd7ad4c2b
commit 9cf671eac7

View File

@ -9,7 +9,7 @@ services:
image: gitea/gitea:latest image: gitea/gitea:latest
environment: environment:
- APP_NAME='通技的 gitea 服务器' - APP_NAME='通技的 gitea 服务器'
- RUN_MODE='prod' # - RUN_MODE='prod'
# - SSH_DOMAIN='dgtongji.f3322.net' # - SSH_DOMAIN='dgtongji.f3322.net'
# - SSH_PORT=22 # - SSH_PORT=22
# - HTTP_PORT=3000 # - HTTP_PORT=3000
@ -17,9 +17,9 @@ services:
- USER_UID=2001 - USER_UID=2001
- USER_GID=100 - USER_GID=100
- DB_TYPE=mysql - DB_TYPE=mysql
- DB_HOST='db:3306' - DB_HOST=db:3306
- DB_NAME='gitea' - DB_NAME=gitea
- DB_USER='root' - DB_USER=root
- DB_PASSWD=gitea894231 - DB_PASSWD=gitea894231
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
restart: always restart: always
@ -27,9 +27,10 @@ services:
- gitea - gitea
volumes: volumes:
- ./data/gitea:/data - ./data/gitea:/data
- ./data/backup:/backup
ports: ports:
- "3000:3000" - "3000:3000"
- "1022:22" - "22:22"
depends_on: depends_on:
- db - db