diff --git a/README.md b/README.md index d387120..1f21f64 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ ## usage Please use the configuration file `gitbucket.conf` for your personal changes. -There are two configs available: +There are three configs available: - `GITBUCKET_BIND`: ip address to bind to -- `GITBUCKET_PORT`: port to bind to +- `GITBUCKET_WEB_PORT`: web port to bind to +- `GITBUCKET_SSH_PORT`: ssh port to bind to diff --git a/docker-compose.yml b/docker-compose.yml index 5968053..d58ae46 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,4 +7,5 @@ volumes: - ./home:/srv/gitbucket/home ports: - - "${GITBUCKET_BIND:-127.0.0.1}:${GITBUCKET_PORT:-8080}:8080" + - "${GITBUCKET_BIND:-127.0.0.1}:${GITBUCKET_WEB_PORT:-8080}:8080" + - "${GITBUCKET_BIND:-127.0.0.1}:${GITBUCKET_SSH_PORT:-29418}:29418" diff --git a/gitbucket.conf b/gitbucket.conf index 168a9e0..9c0806e 100644 --- a/gitbucket.conf +++ b/gitbucket.conf @@ -1 +1,3 @@ -GITBUCKET_PORT=8080 +GITBUCKET_BIND=127.0.0.1 +GITBUCKET_WEB_PORT=8080 +GITBUCKET_SSH_PORT=29418