From 0b247732408f877aabca3adf77381fc37776f43a Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Tue, 28 Jun 2016 19:35:05 +0000 Subject: [PATCH] Enable JVM options customization --- README.md | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md index d105f7d..afa9cca 100644 --- a/README.md +++ b/README.md @@ -56,3 +56,15 @@ You can configure the instance by editing files in directory /opt/gitblit-data inside the container (or appropriate host dir if local storage is used). + +By default the JVM is started with options `-server -Xmx1024m`. +You can override this default using `JAVA_OPTS` environment +variable: + +```bash +docker run -d --name=gitblit \ + -p 8080:8080 -p 8443:8443 \ + -p 9418:9418 -p 29418:29418 \ + -e "JAVA_OPTS=-Xmx512m" \ + jacekkow/gitblit +``` -- Gitblit v1.9.1