Skip to content

Instantly share code, notes, and snippets.

@toast38coza
Created April 19, 2016 08:00
Show Gist options
  • Save toast38coza/064dc3370054f35644034910c10b74cd to your computer and use it in GitHub Desktop.
Save toast38coza/064dc3370054f35644034910c10b74cd to your computer and use it in GitHub Desktop.
version: "2"
services:
cache:
image: redis
registry:
image: registry
ports:
- '5000:5000'
links:
- cache
volumes:
- "reg-data:/var/lib/docker/registry"
environment:
SETTINGS_FLAVOR: 'local'
STORAGE_PATH: '/var/lib/docker/registry'
SEARCH_BACKEND: 'sqlalchemy'
CACHE_REDIS_HOST: 'cache'
CACHE_REDIS_PORT: 6379
CACHE_LRU_REDIS_HOST: 'cache'
CACHE_LRU_REDIS_PORT: 6379
ui:
image: konradkleine/docker-registry-frontend
ports:
- '8081:80'
environment:
ENV_DOCKER_REGISTRY_HOST: 'registry'
ENV_DOCKER_REGISTRY_PORT: 5000
volumes:
reg-data:

running:

docker-compose up -d

  • UI: :8081
  • Registry: 5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment