Skip to content

Instantly share code, notes, and snippets.

@nicosingh
Created July 5, 2018 20:43
Show Gist options
  • Save nicosingh/848685f2b478b663e8246ef5f89b1d18 to your computer and use it in GitHub Desktop.
Save nicosingh/848685f2b478b663e8246ef5f89b1d18 to your computer and use it in GitHub Desktop.
Docker Registry with HTTPS
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: "your.email@address.com"
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