blob: c620edc5b0505183eb9d465c7cc807a53cc7dd4b [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Sergio Slobodrian7c5e8852017-07-31 20:17:14 -040014#
Sergio Slobodrian523ee782017-08-22 16:44:21 -040015# This Docker stackfile deploys a docker insecure registry
Sergio Slobodrian7c5e8852017-07-31 20:17:14 -040016#
Sergio Slobodrian7c5e8852017-07-31 20:17:14 -040017#
Sergio Slobodrian523ee782017-08-22 16:44:21 -040018# docker stack deploy -c docker-compose-registry.yml registry
Sergio Slobodrian7c5e8852017-07-31 20:17:14 -040019#
20
21version: "3"
22services:
23 registry:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080024 image: "${REGISTRY}registry:${REGISTRY_TAG:-2}"
David K. Bainbridge4e920b72017-10-12 07:49:14 -070025 logging:
26 driver: "json-file"
27 options:
28 max-size: "10m"
29 max-file: 3
Sergio Slobodrian523ee782017-08-22 16:44:21 -040030 restart: always
Sergio Slobodrian7c5e8852017-07-31 20:17:14 -040031 deploy:
32 replicas: 1
Sergio Slobodrian7c5e8852017-07-31 20:17:14 -040033 ports:
34 - "5001:5000"
Sergio Slobodrian523ee782017-08-22 16:44:21 -040035 volumes:
36 - /cord/incubator/voltha/registry_data/registry_volume:/var/lib/registry