Last active
September 26, 2021 12:44
-
-
Save predam/3471d682af611ea9e11172af8af4b5a4 to your computer and use it in GitHub Desktop.
Homelab docker registry
This file contains 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: '2' | |
services: | |
registry: | |
restart: always | |
image: registry:2 | |
ports: | |
- 443:5000 | |
environment: | |
- REGISTRY_AUTH=htpasswd | |
- REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm | |
- REGISTRY_AUTH_HTPASSWD_PATH=/auth/.htpasswd | |
- REGISTRY_HTTP_ADDR=0.0.0.0:5000 | |
- REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt | |
- REGISTRY_HTTP_TLS_KEY=/certs/domain.key | |
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/data | |
volumes: | |
- ./auth:/auth | |
- ./certs/:/certs | |
- ./data:/data | |
ui: | |
image: parabuzzle/craneoperator:latest | |
ports: | |
- "8080:80" | |
environment: | |
- REGISTRY_HOST=registry | |
- REGISTRY_PORT=5000 | |
- REGISTRY_PROTOCOL=http | |
- SSL_VERIFY=false | |
- ALLOW_REGISTRY_LOGIN=true | |
restart: always | |
depends_on: | |
- registry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment