blob: f861718c44d00ce907fa70b5956642d296f7093e [file] [log] [blame]
parameters:
_param:
docker_image_registry: registry:2
docker_image_visualizer: dockersamples/visualizer
docker_stack_registry_replicas: 3
docker:
client:
stack:
docker:
service:
registry:
environment:
REGISTRY_HTTP_SECRET: ${_param:docker_registry_http_secret}
deploy:
replicas: ${_param:docker_stack_registry_replicas}
restart_policy:
condition: any
image: ${_param:docker_image_registry}
ports:
- 15000:5000
volumes:
- /srv/volumes/registry:/var/lib/registry
visualizer:
deploy:
restart_policy:
condition: any
placement:
constraints:
- "node.role == manager"
image: ${_param:docker_image_visualizer}
ports:
- 18090:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock