Docker Registry
This service sets up a private Docker registry.
Prerequisites
-
Generate a TLS certificate for your server.
-
Place the certificate and key files (in PEM format) into the
certs/directory. -
Create a
.envfile and configure the following variables:REGISTRY_HTTP_TLS_CERTIFICATE=your_cert.crt REGISTRY_HTTP_TLS_KEY=your_key.key
Services
registry: The Docker registry service.
Configuration
REGISTRY_VERSION: The version of the registry image, default is3.0.0.REGISTRY_PORT: The port for the registry service, default is5000.REGISTRY_AUTH: The authentication method, default ishtpasswd.REGISTRY_AUTH_HTPASSWD_REALM: The realm for htpasswd authentication, default isRegistry Realm.REGISTRY_AUTH_HTPASSWD_PATH: The path to the htpasswd file, default is/certs/passwd.REGISTRY_HTTP_TLS_CERTIFICATE: The TLS certificate file.REGISTRY_HTTP_TLS_KEY: The TLS key file.OTEL_TRACES_EXPORTER: Set tononeto disable tracing.
Volumes
certs: For storing TLS certificates.config.yml: The registry configuration file.registry: A volume for storing registry data.