Jonathan Hart | 93956f5 | 2017-08-22 13:12:42 -0700 | [diff] [blame] | 1 | |
| 2 | {# |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | #} |
| 17 | |
| 18 | |
alshabib | cfb8d72 | 2016-06-15 15:17:37 -0700 | [diff] [blame] | 19 | registry: |
| 20 | image: registry:2.4.0 |
| 21 | container_name: registry |
| 22 | volumes: |
| 23 | - /docker-registry/registry:/var/lib/registry/docker/registry |
| 24 | - /docker-registry/conf:/conf |
| 25 | ports: |
| 26 | - "5000:5000" |
alshabib | 742f085 | 2016-06-17 18:34:17 -0700 | [diff] [blame] | 27 | restart: unless-stopped |
alshabib | cfb8d72 | 2016-06-15 15:17:37 -0700 | [diff] [blame] | 28 | |
| 29 | registry-mirror: |
| 30 | image: registry:2.4.0 |
| 31 | container_name: registry-mirror |
David K. Bainbridge | fac79ca | 2016-07-28 10:00:44 -0700 | [diff] [blame] | 32 | environment: |
| 33 | - "STANDALONE=false" |
| 34 | - "MIRROR_SOURCE=https://registry-1.docker.io" |
| 35 | - "MIRROR_SOURCE_INDEX=https://index.docker.io" |
alshabib | cfb8d72 | 2016-06-15 15:17:37 -0700 | [diff] [blame] | 36 | volumes: |
| 37 | - /docker-registry-mirror/registry:/var/lib/registry/docker/registry |
| 38 | - /docker-registry-mirror/conf:/conf |
alshabib | cfb8d72 | 2016-06-15 15:17:37 -0700 | [diff] [blame] | 39 | ports: |
| 40 | - "5001:5000" |
alshabib | 28daa4c | 2016-06-17 15:44:27 -0700 | [diff] [blame] | 41 | restart: unless-stopped |