-
-
Save pcace/839b380d12322a71a256d048fa80b65c to your computer and use it in GitHub Desktop.
Create a hosted docker registry on Caprover
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
{ | |
"captainVersion": "2", | |
"documentation": "Based on https://www.digitalocean.com/community/tutorials/how-to-set-up-a-private-docker-registry-on-ubuntu-18-04", | |
"displayName": "Docker Container Registry", | |
"dockerCompose": { | |
"version": "3.3", | |
"services": { | |
"$$cap_appname": { | |
"image": "registry:2", | |
"containerHttpPort": "5000", | |
"restart": "always", | |
"volumes": [ | |
"$$cap_appname-data:/data", | |
"$$cap_appname-auth:/auth" | |
], | |
"environment": { | |
"REGISTRY_AUTH": "htpasswd", | |
"REGISTRY_AUTH_HTPASSWD_REALM": "Registry", | |
"REGISTRY_AUTH_HTPASSWD_PATH": "/auth/registry.password", | |
"REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY": "/data" | |
} | |
} | |
} | |
}, | |
"instructions": { | |
"start": "", | |
"stop": "" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment