Skip to content

Instantly share code, notes, and snippets.

@msfidelis
Created February 23, 2017 01:00
Show Gist options
  • Save msfidelis/b81389fec36cd077e4861b4fce7c3ff7 to your computer and use it in GitHub Desktop.
Save msfidelis/b81389fec36cd077e4861b4fce7c3ff7 to your computer and use it in GitHub Desktop.
registry:
image: registry:2
ports:
- "5000:5000"
volumes:
- './data:/var/lib/registry'
- './auth:/auth'
environment:
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment