Created
July 5, 2018 20:43
-
-
Save nicosingh/848685f2b478b663e8246ef5f89b1d18 to your computer and use it in GitHub Desktop.
Docker Registry with HTTPS
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
registry: | |
image: registry:2.6.1 | |
restart: always | |
ports: | |
- "5000:5000" | |
environment: | |
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/live/domain.address.com/fullchain.pem | |
REGISTRY_HTTP_TLS_KEY: /certs/live/domain.address.com/privkey.pem | |
REGISTRY_STORAGE_DELETE_ENABLED: "true" | |
volumes: | |
- ./registry:/var/lib/registry | |
- ./letsencrypt/:/certs | |
lets-nginx: | |
image: smashwilson/lets-nginx | |
restart: always | |
volumes: | |
- "./cache:/cache" | |
- "./letsencrypt:/etc/letsencrypt" | |
links: | |
- registry | |
environment: | |
EMAIL: "[email protected]" | |
DOMAIN: "domain.address.com" | |
UPSTREAM: "registry:80" | |
ports: | |
- "80:80" | |
- "443:443" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment