|
| 1 | +# To start Docker in Swarm mode, you need to run `docker swarm init` |
| 2 | +# To deploy the Grid, `docker stack deploy -c docker-compose-v3-swarm.yml grid` |
| 3 | +# Stop with `docker stack rm grid` |
| 4 | +# Stop swarm mode `docker swarm leave --force` |
| 5 | + |
| 6 | +version: '3.7' |
| 7 | + |
| 8 | +services: |
| 9 | + chrome: |
| 10 | + image: selenium/node-chrome:4.0.0-beta-3-prerelease-20210422 |
| 11 | + volumes: |
| 12 | + - /dev/shm:/dev/shm |
| 13 | + environment: |
| 14 | + - SE_EVENT_BUS_HOST=selenium-hub |
| 15 | + - SE_EVENT_BUS_PUBLISH_PORT=4442 |
| 16 | + - SE_EVENT_BUS_SUBSCRIBE_PORT=4443 |
| 17 | + deploy: |
| 18 | + replicas: 1 |
| 19 | + entrypoint: bash -c 'SE_OPTS="--host $$HOSTNAME" /opt/bin/entry_point.sh' |
| 20 | + |
| 21 | + edge: |
| 22 | + image: selenium/node-edge:4.0.0-beta-3-prerelease-20210422 |
| 23 | + volumes: |
| 24 | + - /dev/shm:/dev/shm |
| 25 | + environment: |
| 26 | + - SE_EVENT_BUS_HOST=selenium-hub |
| 27 | + - SE_EVENT_BUS_PUBLISH_PORT=4442 |
| 28 | + - SE_EVENT_BUS_SUBSCRIBE_PORT=4443 |
| 29 | + deploy: |
| 30 | + replicas: 1 |
| 31 | + entrypoint: bash -c 'SE_OPTS="--host $$HOSTNAME" /opt/bin/entry_point.sh' |
| 32 | + |
| 33 | + firefox: |
| 34 | + image: selenium/node-firefox:4.0.0-beta-3-prerelease-20210422 |
| 35 | + volumes: |
| 36 | + - /dev/shm:/dev/shm |
| 37 | + environment: |
| 38 | + - SE_EVENT_BUS_HOST=selenium-hub |
| 39 | + - SE_EVENT_BUS_PUBLISH_PORT=4442 |
| 40 | + - SE_EVENT_BUS_SUBSCRIBE_PORT=4443 |
| 41 | + deploy: |
| 42 | + replicas: 1 |
| 43 | + entrypoint: bash -c 'SE_OPTS="--host $$HOSTNAME" /opt/bin/entry_point.sh' |
| 44 | + |
| 45 | + opera: |
| 46 | + image: selenium/node-opera:4.0.0-beta-3-prerelease-20210422 |
| 47 | + volumes: |
| 48 | + - /dev/shm:/dev/shm |
| 49 | + environment: |
| 50 | + - SE_EVENT_BUS_HOST=selenium-hub |
| 51 | + - SE_EVENT_BUS_PUBLISH_PORT=4442 |
| 52 | + - SE_EVENT_BUS_SUBSCRIBE_PORT=4443 |
| 53 | + deploy: |
| 54 | + replicas: 1 |
| 55 | + entrypoint: bash -c 'SE_OPTS="--host $$HOSTNAME" /opt/bin/entry_point.sh' |
| 56 | + |
| 57 | + selenium-hub: |
| 58 | + image: selenium/hub:4.0.0-beta-3-prerelease-20210422 |
| 59 | + ports: |
| 60 | + - "4442:4442" |
| 61 | + - "4443:4443" |
| 62 | + - "4444:4444" |
0 commit comments