Sergio Slobodrian | 7c5e885 | 2017-07-31 20:17:14 -0400 | [diff] [blame] | 1 | # |
Sergio Slobodrian | 523ee78 | 2017-08-22 16:44:21 -0400 | [diff] [blame] | 2 | # This Docker stackfile deploys a docker insecure registry |
Sergio Slobodrian | 7c5e885 | 2017-07-31 20:17:14 -0400 | [diff] [blame] | 3 | # |
Sergio Slobodrian | 7c5e885 | 2017-07-31 20:17:14 -0400 | [diff] [blame] | 4 | # |
Sergio Slobodrian | 523ee78 | 2017-08-22 16:44:21 -0400 | [diff] [blame] | 5 | # docker stack deploy -c docker-compose-registry.yml registry |
Sergio Slobodrian | 7c5e885 | 2017-07-31 20:17:14 -0400 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | version: "3" |
| 9 | services: |
| 10 | registry: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 11 | image: "${REGISTRY}registry:${REGISTRY_TAG:-2}" |
David K. Bainbridge | 4e920b7 | 2017-10-12 07:49:14 -0700 | [diff] [blame] | 12 | logging: |
| 13 | driver: "json-file" |
| 14 | options: |
| 15 | max-size: "10m" |
| 16 | max-file: 3 |
Sergio Slobodrian | 523ee78 | 2017-08-22 16:44:21 -0400 | [diff] [blame] | 17 | restart: always |
Sergio Slobodrian | 7c5e885 | 2017-07-31 20:17:14 -0400 | [diff] [blame] | 18 | deploy: |
| 19 | replicas: 1 |
Sergio Slobodrian | 7c5e885 | 2017-07-31 20:17:14 -0400 | [diff] [blame] | 20 | ports: |
| 21 | - "5001:5000" |
Sergio Slobodrian | 523ee78 | 2017-08-22 16:44:21 -0400 | [diff] [blame] | 22 | volumes: |
| 23 | - /cord/incubator/voltha/registry_data/registry_volume:/var/lib/registry |