Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | docker_image_registry: registry:2 |
Ilya Kharin | 13d1a45 | 2017-07-02 13:11:30 +0400 | [diff] [blame] | 4 | docker_image_visualizer: dockersamples/visualizer |
azvyagintsev | 4c89c12 | 2018-02-27 12:52:35 +0200 | [diff] [blame] | 5 | docker_stack_registry_replicas: 3 |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 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: |
azvyagintsev | 4c89c12 | 2018-02-27 12:52:35 +0200 | [diff] [blame] | 15 | replicas: ${_param:docker_stack_registry_replicas} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 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 |
| 23 | visualizer: |
| 24 | deploy: |
| 25 | restart_policy: |
| 26 | condition: any |
| 27 | placement: |
| 28 | constraints: |
| 29 | - "node.role == manager" |
| 30 | image: ${_param:docker_image_visualizer} |
| 31 | ports: |
| 32 | - 18090:8080 |
| 33 | volumes: |
| 34 | - /var/run/docker.sock:/var/run/docker.sock |