Giter Club home page Giter Club logo

docker-registry-stack's Introduction

Docker Registry Stack

About

docker-registry-stack is a set of configurations designed to simplify the deployment of a private Docker registry. This repository offers a range of storage backends and installation methods to suit various needs and environments. It employs Caddy for authentication and TLS, and Redis for caching."

Available methods and options

Getting Started

Prerequisites

All configurations require Docker and Docker Compose.

Configuration

For manual installation method you need to set necessary environment variables in env_file. Clone the repository and copy the required directory to a suitable location on your server. Then edit environment variables.

  • Disk storage

    • REGISTRY_DOMAIN: Registry domain.
    • REGISTRY_BASIC_AUTH_USERNAME: Registry auth user.
    • REGISTRY_BASIC_AUTH_PASSWORD: Registry auth password.
  • S3 storage

    • REGISTRY_DOMAIN: Registry domain.
    • REGISTRY_BASIC_AUTH_USERNAME: Registry auth user.
    • REGISTRY_BASIC_AUTH_PASSWORD: Registry auth password.
    • REGISTRY_STORAGE_S3_ACCESSKEY: Access Key.
    • REGISTRY_STORAGE_S3_SECRETKEY: Secret Key.
    • REGISTRY_STORAGE_S3_BUCKET: Bucket name.
    • REGISTRY_STORAGE_S3_REGION: Region name.
    • REGISTRY_STORAGE_S3_REGIONENDPOINT: S3 API endpoin address.
    • REGISTRY_STORAGE_S3_SECURE: Set to true if https in your endpoint.

Make sure that the REGISTRY_DOMAIN DNS records are configured with your server's IP address.

Running

If all environment variables are set, just run your stack:

docker-compose up -d

Usage

Login to your docker registry using provided REGISTRY_DOMAIN, REGISTRY_BASIC_AUTH_USERNAME and REGISTRY_BASIC_AUTH_PASSWORD:

Example:

docker login registry.example.com

Tag some docker image using your REGISTRY_DOMAIN and push it to your registry.

Example:

docker tag mydockerimage:latest registry.example.com/mydockerimage:latest
docker push registry.example.com/mydockerimage:latest

Then, you can pull your image

Example:

docker pull registry.example.com/mydockerimage:latest

docker-registry-stack's People

Contributors

us2h avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.