diff --git a/.github/workflows/docker_workflow.yml b/.github/workflows/docker_workflow.yml index 70db60e8..e73bcff5 100644 --- a/.github/workflows/docker_workflow.yml +++ b/.github/workflows/docker_workflow.yml @@ -162,7 +162,7 @@ jobs: id: docker_compose if: steps.docker_env_setup.outcome == 'success' run: | - docker-compose -f docker-compose.yml up -d + docker-compose up -d - name: Wait for services to start run: sleep 30 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..a00adbd9 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,42 @@ +# To execute this docker-compose yml file use `docker-compose -f docker-compose.yml up` +# Add the `-d` flag at the end for detached execution +# To stop the execution, hit Ctrl+C, and then `docker-compose -f docker-compose.yml down` +version: "3" +services: + chrome: + image: selenium/node-chrome:4.18.0-20240220 + shm_size: 2gb + depends_on: + - selenium-hub + environment: + - SE_EVENT_BUS_HOST=selenium-hub + - SE_EVENT_BUS_PUBLISH_PORT=4442 + - SE_EVENT_BUS_SUBSCRIBE_PORT=4443 + + edge: + image: selenium/node-edge:4.18.0-20240220 + shm_size: 2gb + depends_on: + - selenium-hub + environment: + - SE_EVENT_BUS_HOST=selenium-hub + - SE_EVENT_BUS_PUBLISH_PORT=4442 + - SE_EVENT_BUS_SUBSCRIBE_PORT=4443 + + firefox: + image: selenium/node-firefox:4.18.0-20240220 + shm_size: 2gb + depends_on: + - selenium-hub + environment: + - SE_EVENT_BUS_HOST=selenium-hub + - SE_EVENT_BUS_PUBLISH_PORT=4442 + - SE_EVENT_BUS_SUBSCRIBE_PORT=4443 + + selenium-hub: + image: selenium/hub:4.18.0-20240220 + container_name: selenium-hub + ports: + - "4442:4442" + - "4443:4443" + - "4444:4444" \ No newline at end of file