Add docker registry (#1770)

* add docker registry and docker registry web ui
This commit is contained in:
ahkui 2018-09-18 11:15:59 +08:00 committed by Shao Yu-Lung (Allen)
parent 919cde3a76
commit 436df887c9
4 changed files with 46 additions and 0 deletions

View File

@ -1070,6 +1070,35 @@ services:
networks:
- backend
### DOCKER-REGISTRY ################################################
docker-registry:
build:
context: ./docker-registry
volumes:
- /etc/localtime:/etc/localtime:ro
- ${DATA_PATH_HOST}/docker-registry:/var/lib/registry
ports:
- "${DOCKER_REGISTRY_PORT}:5000"
networks:
- backend
### DOCKER-WEB-UI ################################################
docker-web-ui:
build:
context: ./docker-web-ui
environment:
- TZ=${WORKSPACE_TIMEZONE}
- ENV_DOCKER_REGISTRY_HOST=${DOCKER_WEBUI_REGISTRY_HOST}
- ENV_DOCKER_REGISTRY_PORT=${DOCKER_WEBUI_REGISTRY_PORT}
- ENV_DOCKER_REGISTRY_USE_SSL=${DOCKER_REGISTRY_USE_SSL}
- ENV_MODE_BROWSE_ONLY=${DOCKER_REGISTRY_BROWSE_ONLY}
volumes:
- /etc/localtime:/etc/localtime:ro
ports:
- "${DOCKER_WEBUI_PORT}:80"
networks:
- frontend
- backend
### MAILU ################################################
mailu:

View File

@ -0,0 +1,3 @@
FROM registry:2
LABEL maintainer="ahkui <ahkui@outlook.com>"

3
docker-web-ui/Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM konradkleine/docker-registry-frontend:v2
LABEL maintainer="ahkui <ahkui@outlook.com>"

View File

@ -539,6 +539,17 @@ IDE_WEBIDE_PORT=984
IDE_CODIAD_PORT=985
IDE_ICECODER_PORT=986
### DOCKERREGISTRY ###############################################
DOCKER_REGISTRY_PORT=5000
### DOCKERWEBUI ###############################################
DOCKER_WEBUI_REGISTRY_HOST=docker-registry
DOCKER_WEBUI_REGISTRY_PORT=5000
# if have use https proxy please set to 1
DOCKER_REGISTRY_USE_SSL=0
DOCKER_REGISTRY_BROWSE_ONLY=false
DOCKER_WEBUI_PORT=8754
### MAILU ###############################################
MAILU_VERSION=latest
MAILU_RECAPTCHA_PUBLIC_KEY=<YOUR_RECAPTCHA_PUBLIC_KEY>