Skip to content

datajoint-company/docker-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Private Docker Registry with Let's Encrypt

Base image

How to use

Prerequisite

Optional

  • create a separated volume for docker image data
  • mount volume to /docker-mnt directory

Setup directories and password

mkdir -p /docker-mnt/auth
mkdir -p /docker-mnt/data
docker run --entrypoint htpasswd httpd:2 -Bbn <username> <password> > /docker-mnt/auth/htpasswd

Run it

# e.g. if you want to serve your private registry at registry.example.com
SUBDOMAIN=<registry> URL=<exmaple.com> PUBLIC_IP=<X.X.X.X> STAGING=true docker compose up -d

See more details in the comments of docker-compose.yaml

Limitation

  • Only support single subdomain, which is usually enough

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published