blob: 8804259af978f20ef91a47da950d98c1d4e573e4 [file] [log] [blame]
Sergio Slobodrian7c5e8852017-07-31 20:17:14 -04001#
Sergio Slobodrian523ee782017-08-22 16:44:21 -04002# This Docker stackfile deploys a docker insecure registry
Sergio Slobodrian7c5e8852017-07-31 20:17:14 -04003#
Sergio Slobodrian7c5e8852017-07-31 20:17:14 -04004#
Sergio Slobodrian523ee782017-08-22 16:44:21 -04005# docker stack deploy -c docker-compose-registry.yml registry
Sergio Slobodrian7c5e8852017-07-31 20:17:14 -04006#
7
8version: "3"
9services:
10 registry:
11 image: registry:2
Sergio Slobodrian523ee782017-08-22 16:44:21 -040012 restart: always
Sergio Slobodrian7c5e8852017-07-31 20:17:14 -040013 deploy:
14 replicas: 1
Sergio Slobodrian7c5e8852017-07-31 20:17:14 -040015 ports:
16 - "5001:5000"
Sergio Slobodrian523ee782017-08-22 16:44:21 -040017 volumes:
18 - /cord/incubator/voltha/registry_data/registry_volume:/var/lib/registry