Skip to content

Instantly share code, notes, and snippets.

@Alireza2n
Created April 16, 2022 04:37
Show Gist options
  • Save Alireza2n/2ec7c09fa002abeed5c6f02729af4550 to your computer and use it in GitHub Desktop.
Save Alireza2n/2ec7c09fa002abeed5c6f02729af4550 to your computer and use it in GitHub Desktop.
Simple docker-compose file to run your own private registry
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