Skip to content

Commit bd2faad

Browse files
committed
closes #23
1 parent 4d8eb06 commit bd2faad

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Download example [docker-compose.yml](https://raw.githubusercontent.com/mkuchin/
2626
### Environment variables
2727
* REGISTRY_HOST - hostname of docker registry, if registry running in docker should be link name or point to container internal ip address
2828
* REGISTRY_PORT - port of docker registry
29+
* REGISTRY_NAME - visible name of registry if it different from `${REGISTRY_HOST}:${REGISTRY_PORT}`
2930
* REGISTRY_AUTH - base64 encoded token for basic authentication
3031
* READONLY = true|false - readonly mode
3132
* TRUST_ANY_SSL = true|false - set to true, if you are using self signed certificate for registry

grails-app/conf/Config.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,6 @@ grails.sitemesh.default.layout = "main"
126126
registry {
127127
host = System.env.REGISTRY_HOST ?: 'localhost'
128128
port = System.env.REGISTRY_PORT ?: '5000'
129-
name = "${host}${port != 80 ? ":$port".toString() : ''}"
129+
name = System.env.REGISTRY_NAME ?: "${host}${port != 80 ? ":$port".toString() : ''}"
130130
readonly = System.env.READONLY == 'true'
131131
}

0 commit comments

Comments
 (0)