blob: dc6bb9160263333c98c4a62971d83131004d9cab [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
David K. Bainbridgee45c1942017-10-12 07:49:14 -070012 logging:
13 driver: "json-file"
14 options:
15 max-size: "10m"
16 max-file: 3
Sergio Slobodrian523ee782017-08-22 16:44:21 -040017 restart: always
Sergio Slobodrian7c5e8852017-07-31 20:17:14 -040018 deploy:
19 replicas: 1
Sergio Slobodrian7c5e8852017-07-31 20:17:14 -040020 ports:
21 - "5001:5000"
Sergio Slobodrian523ee782017-08-22 16:44:21 -040022 volumes:
23 - /cord/incubator/voltha/registry_data/registry_volume:/var/lib/registry