azvyagintsev | 2110338 | 2018-04-07 17:48:38 +0300 | [diff] [blame^] | 1 | # simplified version of system.docker.swarm.stack.docker |
azvyagintsev | a789a30 | 2018-02-28 18:39:27 +0200 | [diff] [blame] | 2 | parameters: |
| 3 | _param: |
azvyagintsev | 2110338 | 2018-04-07 17:48:38 +0300 | [diff] [blame^] | 4 | docker_image_registry: docker-prod-local.docker.mirantis.net/mirantis/external/registry:${_param:apt_mk_version} |
azvyagintsev | a789a30 | 2018-02-28 18:39:27 +0200 | [diff] [blame] | 5 | docker_stack_registry_replicas: 1 |
| 6 | docker: |
| 7 | client: |
| 8 | stack: |
| 9 | docker: |
| 10 | service: |
| 11 | registry: |
| 12 | environment: |
| 13 | REGISTRY_HTTP_SECRET: ${_param:docker_registry_http_secret} |
| 14 | deploy: |
| 15 | replicas: ${_param:docker_stack_registry_replicas} |
| 16 | restart_policy: |
| 17 | condition: any |
| 18 | image: ${_param:docker_image_registry} |
| 19 | ports: |
| 20 | - 15000:5000 |
| 21 | volumes: |
| 22 | - "/srv/volumes/registry:/var/lib/registry" |