Created
April 16, 2022 04:37
-
-
Save Alireza2n/2ec7c09fa002abeed5c6f02729af4550 to your computer and use it in GitHub Desktop.
Simple docker-compose file to run your own private registry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
registry: | |
restart: always | |
image: registry | |
environment: | |
- REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm | |
- REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd | |
- REGISTRY_HTTP_SECRET=<Some random string> | |
ports: | |
- 127.0.0.1:5000:5000 | |
volumes: | |
- ./data:/var/lib/registry | |
- ./auth:/auth | |
- ./config.yml:/etc/docker/registry/config.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment