blob: cb44be96111617a7e508188844a2f3c5de2e5b24 [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:
David K. Bainbridge12463052018-01-19 09:26:09 -080011 image: "${REGISTRY}registry:${REGISTRY_TAG:-2}"
David K. Bainbridge4e920b72017-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