Skip to content

Instantly share code, notes, and snippets.

@dweomer
Last active September 19, 2018 00:20
Show Gist options
  • Save dweomer/e4df66a03233c4f030f06359f89fec82 to your computer and use it in GitHub Desktop.
Save dweomer/e4df66a03233c4f030f06359f89fec82 to your computer and use it in GitHub Desktop.
docker registry composition
version: "3"
volumes:
local-data:
mirror-data:
services:
local:
container_name: registry-local
image: registry:2
network_mode: bridge
ports:
- 5001:5000
restart: unless-stopped
volumes:
- local-data:/var/lib/registry
mirror:
container_name: registry-mirror
environment:
- REGISTRY_PROXY_REMOTEURL="https://registry-1.docker.io"
image: registry:2
network_mode: bridge
ports:
- 5000:5000
restart: unless-stopped
volumes:
- mirror-data:/var/lib/registry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment