blob: a680d4c447c1abe870a58062920fc4a39b41b4dc [file] [log] [blame]
Filip Pytloun7d6144a2017-04-13 13:36:45 +02001parameters:
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