diff --git a/docker-compose.yml b/docker-compose.yml index 54380ec..8fbd241 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,13 +7,14 @@ depends_on: - mysql-gitbucket environment: + - GITBUCKET_USER_ID=${GITBUCKET_USER_ID:-9000} - GITBUCKET_DATABASE_HOST=172.22.2.251 - GITBUCKET_DATABASE_NAME=${GITBUCKET_DATABASE_NAME} - GITBUCKET_DATABASE_USER=${GITBUCKET_DATABASE_USER} - GITBUCKET_DATABASE_PASSWORD=${GITBUCKET_DATABASE_PASSWORD} volumes: - ./data/repositories/:/srv/gitbucket/repositories/ - - ./data/plugins/:/srv/gitbucket/plugins/:ro + - ./data/plugins/:/srv/gitbucket/plugins/ - ./data/conf/gitbucket/gitbucket.conf:/srv/gitbucket/gitbucket.conf tmpfs: - /tmp diff --git a/gitbucket.conf b/gitbucket.conf index cd01c7e..f3254a1 100644 --- a/gitbucket.conf +++ b/gitbucket.conf @@ -1,5 +1,5 @@ ## gitbucket configuration -# host to bind the ports above to +# host to bind the ports below to GITBUCKET_BIND=127.0.0.1 # web port @@ -8,6 +8,10 @@ # ssh port GITBUCKET_SSH_PORT=29418 +# gitbucket user id. should be the same as your current user id. +# use setUserID.sh +GITBUCKET_USER_ID=9000 + ## database configuration # mysql root user password