Skip to content

Toufyx/registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

registry

A SECURE DOCKER 2.0 REGISTRY WITH BASIC AUTHENTICATION

Requirements

  • letsencrypt
  • docker and docker-compose

Installation

  1. create a valid letsencrypt certificate for your domain - check this tutorial
  2. split your certificate into a cert and a key (run bin/generate-key-cert-from-pem <path/to/letsencrypt/live/>)
  3. generate a httpasswd file (run bin/generate-htpasswd <username> <password>)
  4. install the expected directories (run bin/install.sh)
  5. expose the domain to the container (export DOMAIN="my.domain.fr")
  6. go to /containers/registry and run docker-compose up -d
  7. add cert renew to crontab, for example:
0 2 1 * * /containers/registry/bin/renew-certs my.domain.fr

About

private docker registry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages