Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
azvyagintsev | 4c89c12 | 2018-02-27 12:52:35 +0200 | [diff] [blame] | 3 | docker_stack_registry_replicas: 3 |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 4 | docker: |
| 5 | client: |
| 6 | stack: |
| 7 | docker: |
| 8 | service: |
| 9 | registry: |
| 10 | environment: |
| 11 | REGISTRY_HTTP_SECRET: ${_param:docker_registry_http_secret} |
| 12 | deploy: |
azvyagintsev | 4c89c12 | 2018-02-27 12:52:35 +0200 | [diff] [blame] | 13 | replicas: ${_param:docker_stack_registry_replicas} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 14 | restart_policy: |
| 15 | condition: any |
| 16 | image: ${_param:docker_image_registry} |
| 17 | ports: |
| 18 | - 15000:5000 |
| 19 | volumes: |
| 20 | - /srv/volumes/registry:/var/lib/registry |
| 21 | visualizer: |
| 22 | deploy: |
| 23 | restart_policy: |
| 24 | condition: any |
| 25 | placement: |
| 26 | constraints: |
| 27 | - "node.role == manager" |
| 28 | image: ${_param:docker_image_visualizer} |
| 29 | ports: |
| 30 | - 18090:8080 |
| 31 | volumes: |
| 32 | - /var/run/docker.sock:/var/run/docker.sock |