Skip to content

Instantly share code, notes, and snippets.

@Aaronontheweb
Created August 7, 2024 01:56
Show Gist options
  • Save Aaronontheweb/e962abea242df9033e5d7bd8f64df363 to your computer and use it in GitHub Desktop.
Save Aaronontheweb/e962abea242df9033e5d7bd8f64df363 to your computer and use it in GitHub Desktop.
Docker Registry Self-Host
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