Skip to content

Instantly share code, notes, and snippets.

@g1ibby
Created October 3, 2018 09:21
Show Gist options
  • Save g1ibby/94bb9588a12d32a021a0e1a91845479d to your computer and use it in GitHub Desktop.
Save g1ibby/94bb9588a12d32a021a0e1a91845479d to your computer and use it in GitHub Desktop.
registry:
restart: always
image: registry:2
ports:
- 5000:5000
environment:
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/domain.crt
REGISTRY_HTTP_TLS_KEY: /certs/domain.key
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
volumes:
- ./data:/var/lib/registry
- ./certs:/certs
- ./auth:/auth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment