1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00
dockerfiles/ggr/docker-stack.yml

49 lines
931 B
YAML
Raw Normal View History

2021-04-20 03:17:28 +00:00
version: '3.8'
2019-11-08 16:37:37 +00:00
services:
hub:
image: vimagick/ggr
ports:
- "4444:4444"
environment:
- BROWSER_NAME=chrome
2021-04-20 03:29:15 +00:00
- BROWSER_VERSION=90.0
2019-11-08 16:37:37 +00:00
- BROWSER_REGION=1
- BROWSER_HOSTS=tasks.chrome
- BROWSER_PORT=4444
- BROWSER_COUNT=10
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
restart_policy:
condition: on-failure
chrome:
2021-05-31 07:53:58 +00:00
image: selenium/standalone-chrome:3.141.59
2019-11-08 16:37:37 +00:00
volumes:
- /dev/shm:/dev/shm
environment:
- NODE_MAX_INSTANCES=10
- NODE_MAX_SESSION=10
depends_on:
- hub
deploy:
replicas: 2
placement:
constraints:
- node.role == worker
restart_policy:
condition: on-failure
update_config:
parallelism: 5
delay: 10s
order: stop-first
2019-11-11 15:42:43 +00:00
networks:
default:
driver: overlay
attachable: true