blob: f861718c44d00ce907fa70b5956642d296f7093e [file] [log] [blame]
Filip Pytloun7d6144a2017-04-13 13:36:45 +02001parameters:
2 _param:
3 docker_image_registry: registry:2
Ilya Kharin13d1a452017-07-02 13:11:30 +04004 docker_image_visualizer: dockersamples/visualizer
azvyagintsev4c89c122018-02-27 12:52:35 +02005 docker_stack_registry_replicas: 3
Filip Pytloun7d6144a2017-04-13 13:36:45 +02006 docker:
7 client:
8 stack:
9 docker:
10 service:
11 registry:
12 environment:
13 REGISTRY_HTTP_SECRET: ${_param:docker_registry_http_secret}
14 deploy:
azvyagintsev4c89c122018-02-27 12:52:35 +020015 replicas: ${_param:docker_stack_registry_replicas}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020016 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