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