Skip to content

Instantly share code, notes, and snippets.

@frknbasaran
Last active July 25, 2020 23:38
Show Gist options
  • Save frknbasaran/3a02472e703f7a8684c5f010563041e7 to your computer and use it in GitHub Desktop.
Save frknbasaran/3a02472e703f7a8684c5f010563041e7 to your computer and use it in GitHub Desktop.
docker-compose file for self-hosted docker registry
version: '3'
services:
registry:
image: registry:2
ports:
- "5000:5000"
environment:
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_REALM: Registry
REGISTRY_AUTH_HTPASSWD_PATH: /auth/registry.password
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
volumes:
- ./auth:/auth
- ./data:/data
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment