alshabib | cfb8d72 | 2016-06-15 15:17:37 -0700 | [diff] [blame] | 1 | registry: |
| 2 | image: registry:2.4.0 |
| 3 | container_name: registry |
| 4 | volumes: |
| 5 | - /docker-registry/registry:/var/lib/registry/docker/registry |
| 6 | - /docker-registry/conf:/conf |
| 7 | ports: |
| 8 | - "5000:5000" |
alshabib | 742f085 | 2016-06-17 18:34:17 -0700 | [diff] [blame] | 9 | restart: unless-stopped |
alshabib | cfb8d72 | 2016-06-15 15:17:37 -0700 | [diff] [blame] | 10 | |
| 11 | registry-mirror: |
| 12 | image: registry:2.4.0 |
| 13 | container_name: registry-mirror |
David K. Bainbridge | 10d6a9a | 2016-07-28 10:00:44 -0700 | [diff] [blame] | 14 | environment: |
| 15 | - "STANDALONE=false" |
| 16 | - "MIRROR_SOURCE=https://registry-1.docker.io" |
| 17 | - "MIRROR_SOURCE_INDEX=https://index.docker.io" |
alshabib | cfb8d72 | 2016-06-15 15:17:37 -0700 | [diff] [blame] | 18 | volumes: |
| 19 | - /docker-registry-mirror/registry:/var/lib/registry/docker/registry |
| 20 | - /docker-registry-mirror/conf:/conf |
alshabib | cfb8d72 | 2016-06-15 15:17:37 -0700 | [diff] [blame] | 21 | ports: |
| 22 | - "5001:5000" |
alshabib | 28daa4c | 2016-06-17 15:44:27 -0700 | [diff] [blame] | 23 | restart: unless-stopped |