Created
August 7, 2024 01:56
-
-
Save Aaronontheweb/e962abea242df9033e5d7bd8f64df363 to your computer and use it in GitHub Desktop.
Docker Registry Self-Host
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
services: | |
registry: | |
image: registry:2 | |
restart: unless-stopped | |
ports: | |
- "5000:5000" | |
environment: | |
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data | |
volumes: | |
- reg-data:/data | |
# Registry data is persisted | |
volumes: | |
reg-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment