diff --git a/docker-compose.yml b/docker-compose.yml index f02ef95..297c4db 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ services: main-gitbucket: - image: pgollor/gitbucket:develop + image: pgollor/gitbucket:latest mem_limit: 2g restart: always depends_on: @@ -14,6 +14,7 @@ - GITBUCKET_DATABASE_NAME=${GITBUCKET_DATABASE_NAME} - GITBUCKET_DATABASE_USER=${GITBUCKET_DATABASE_USER} - GITBUCKET_DATABASE_PASSWORD=${GITBUCKET_DATABASE_PASSWORD} + - GITBUCKET_MAX_FILE_SIZE=${GITBUCKET_MAX_FILE_SIZE:10485760} - TZ=${TZ} volumes: - ./data/repositories/:/srv/gitbucket/repositories/ diff --git a/docker/Dockerfile b/docker/Dockerfile index ddfe99e..a27058e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -14,6 +14,7 @@ ENV GITBUCKET_HOST 0.0.0.0 ENV GITBUCKET_PORT 8080 ENV GITBUCKET_HOME /srv/gitbucket +ENV GITBUCKET_MAX_FILE_SIZE=10485760 # create home RUN mkdir -p $GITBUCKET_HOME @@ -55,4 +56,4 @@ RUN chmod +x /docker-entrypoint.sh ENTRYPOINT ["/docker-entrypoint.sh"] -CMD su-exec gitbucket java -jar $GITBUCKET_HOME/latest.war --host=$GITBUCKET_HOST --port=$GITBUCKET_PORT --gitbucket.home=$GITBUCKET_HOME +CMD su-exec gitbucket java -jar $GITBUCKET_HOME/latest.war --host=$GITBUCKET_HOST --port=$GITBUCKET_PORT --gitbucket.home=$GITBUCKET_HOME --max_file_size=$GITBUCKET_MAX_FILE_SIZE" diff --git a/gitbucket.conf.example b/gitbucket.conf.example index ef291bd..b92867f 100644 --- a/gitbucket.conf.example +++ b/gitbucket.conf.example @@ -15,6 +15,9 @@ # use setUserID.sh GITBUCKET_USER_ID=9000 +# max file size for uploaded files in bytes +GITBUCKET_MAX_FILE_SIZE=10485760 + ## database configuration # mysql root user password