1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00
dockerfiles/jsonwire-grid/docker-stack.yml
2019-11-03 16:54:00 +08:00

52 lines
1.1 KiB
YAML

version: "3.7"
services:
hub:
image: vimagick/jsonwire-grid
ports:
- "4444:4444"
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
restart_policy:
condition: on-failure
firefox:
image: selenium/node-firefox:3.141.59-xenon
entrypoint: bash -c 'SE_OPTS="-host $$HOSTNAME -port 5555" /opt/bin/entry_point.sh'
volumes:
- /dev/shm:/dev/shm
environment:
- HUB_HOST=hub
- HUB_PORT=4444
depends_on:
- hub
deploy:
replicas: 10
placement:
constraints:
- node.role == worker
restart_policy:
condition: on-failure
chrome:
image: selenium/node-chrome:3.141.59-xenon
entrypoint: bash -c 'SE_OPTS="-host $$HOSTNAME -port 5555" /opt/bin/entry_point.sh'
volumes:
- /dev/shm:/dev/shm
environment:
- HUB_HOST=hub
- HUB_PORT=4444
depends_on:
- hub
deploy:
replicas: 2
placement:
constraints:
- node.role == manager
restart_policy:
condition: on-failure