Skip to content

Commit

Permalink
Add docker registry (laradock#1770)
Browse files Browse the repository at this point in the history
* add docker registry and docker registry web ui
  • Loading branch information
ahkui authored and bestlong committed Sep 18, 2018
1 parent 919cde3 commit 436df88
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions docker-registry/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM registry:2

LABEL maintainer="ahkui <[email protected]>"
3 changes: 3 additions & 0 deletions docker-web-ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM konradkleine/docker-registry-frontend:v2

LABEL maintainer="ahkui <[email protected]>"
11 changes: 11 additions & 0 deletions env-example
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 436df88

Please sign in to comment.