2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01:00
This commit is contained in:
kev
2019-11-03 16:54:00 +08:00
parent eba2b7ed78
commit 9c8477ca8a
5 changed files with 61 additions and 17 deletions

View File

@@ -31,3 +31,21 @@ services:
- 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