Created
October 28, 2019 14:13
-
-
Save marcelo-ochoa/1d9c926b190f2051beb1fb8e63f86720 to your computer and use it in GitHub Desktop.
A docker stack for deploying a private docker registry and UI using GlusterFS volume plugin driver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.6' | |
services: | |
registry: | |
image: registry:2 | |
ports: | |
- "5000:5000" | |
networks: | |
- lb_network | |
volumes: | |
- data:/var/lib/registry | |
registry-ui: | |
image: konradkleine/docker-registry-frontend:v2 | |
networks: | |
- lb_network | |
ports: | |
- "5008:80" | |
environment: | |
- ENV_DOCKER_REGISTRY_HOST=registry.mydomain.com | |
- ENV_DOCKER_REGISTRY_PORT=443 | |
- ENV_DOCKER_REGISTRY_USE_SSL=1 | |
- ENV_MODE_BROWSE_ONLY=false | |
extra_hosts: | |
# replace this IP with your load balancer public IP | |
- "registry.mydomain.com:1.1.1.1" | |
volumes: | |
data: | |
driver: glusterfs | |
name: "myvolume/registry" | |
networks: | |
lb_network: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment