blob: bc6dc43a88585eb30d350131246b7f92c2885854 [file] [log] [blame]
Jonathan Hart93956f52017-08-22 13:12:42 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
alshabibcfb8d722016-06-15 15:17:37 -070019registry:
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"
alshabib742f0852016-06-17 18:34:17 -070027 restart: unless-stopped
alshabibcfb8d722016-06-15 15:17:37 -070028
29registry-mirror:
30 image: registry:2.4.0
31 container_name: registry-mirror
David K. Bainbridgefac79ca2016-07-28 10:00:44 -070032 environment:
33 - "STANDALONE=false"
34 - "MIRROR_SOURCE=https://registry-1.docker.io"
35 - "MIRROR_SOURCE_INDEX=https://index.docker.io"
alshabibcfb8d722016-06-15 15:17:37 -070036 volumes:
37 - /docker-registry-mirror/registry:/var/lib/registry/docker/registry
38 - /docker-registry-mirror/conf:/conf
alshabibcfb8d722016-06-15 15:17:37 -070039 ports:
40 - "5001:5000"
alshabib28daa4c2016-06-17 15:44:27 -070041 restart: unless-stopped