Skip to content

Commit 436df88

Browse files
ahkuibestlong
authored andcommitted
Add docker registry (laradock#1770)
* add docker registry and docker registry web ui
1 parent 919cde3 commit 436df88

4 files changed

Lines changed: 46 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,35 @@ services:
10701070
networks:
10711071
- backend
10721072

1073+
### DOCKER-REGISTRY ################################################
1074+
docker-registry:
1075+
build:
1076+
context: ./docker-registry
1077+
volumes:
1078+
- /etc/localtime:/etc/localtime:ro
1079+
- ${DATA_PATH_HOST}/docker-registry:/var/lib/registry
1080+
ports:
1081+
- "${DOCKER_REGISTRY_PORT}:5000"
1082+
networks:
1083+
- backend
1084+
1085+
### DOCKER-WEB-UI ################################################
1086+
docker-web-ui:
1087+
build:
1088+
context: ./docker-web-ui
1089+
environment:
1090+
- TZ=${WORKSPACE_TIMEZONE}
1091+
- ENV_DOCKER_REGISTRY_HOST=${DOCKER_WEBUI_REGISTRY_HOST}
1092+
- ENV_DOCKER_REGISTRY_PORT=${DOCKER_WEBUI_REGISTRY_PORT}
1093+
- ENV_DOCKER_REGISTRY_USE_SSL=${DOCKER_REGISTRY_USE_SSL}
1094+
- ENV_MODE_BROWSE_ONLY=${DOCKER_REGISTRY_BROWSE_ONLY}
1095+
volumes:
1096+
- /etc/localtime:/etc/localtime:ro
1097+
ports:
1098+
- "${DOCKER_WEBUI_PORT}:80"
1099+
networks:
1100+
- frontend
1101+
- backend
10731102

10741103
### MAILU ################################################
10751104
mailu:

docker-registry/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM registry:2
2+
3+
LABEL maintainer="ahkui <ahkui@outlook.com>"

docker-web-ui/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM konradkleine/docker-registry-frontend:v2
2+
3+
LABEL maintainer="ahkui <ahkui@outlook.com>"

env-example

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,17 @@ IDE_WEBIDE_PORT=984
539539
IDE_CODIAD_PORT=985
540540
IDE_ICECODER_PORT=986
541541

542+
### DOCKERREGISTRY ###############################################
543+
DOCKER_REGISTRY_PORT=5000
544+
545+
### DOCKERWEBUI ###############################################
546+
DOCKER_WEBUI_REGISTRY_HOST=docker-registry
547+
DOCKER_WEBUI_REGISTRY_PORT=5000
548+
# if have use https proxy please set to 1
549+
DOCKER_REGISTRY_USE_SSL=0
550+
DOCKER_REGISTRY_BROWSE_ONLY=false
551+
DOCKER_WEBUI_PORT=8754
552+
542553
### MAILU ###############################################
543554
MAILU_VERSION=latest
544555
MAILU_RECAPTCHA_PUBLIC_KEY=<YOUR_RECAPTCHA_PUBLIC_KEY>

0 commit comments

Comments
 (0)