docker-compose-v3-full-grid.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. # To execute this docker compose yml file use `docker compose -f docker-compose-v3-full-grid.yml up`
  2. # Add the `-d` flag at the end for detached execution
  3. # To stop the execution, hit Ctrl+C, and then `docker compose -f docker-compose-v3-full-grid.yml down`
  4. services:
  5. selenium-event-bus:
  6. image: selenium/event-bus:4.37.0-20251020
  7. container_name: selenium-event-bus
  8. restart: unless-stopped
  9. ports:
  10. - "4442:4442"
  11. - "4443:4443"
  12. - "5557:5557"
  13. selenium-sessions:
  14. image: selenium/sessions:4.37.0-20251020
  15. container_name: selenium-sessions
  16. restart: unless-stopped
  17. ports:
  18. - "5556:5556"
  19. depends_on:
  20. - selenium-event-bus
  21. environment:
  22. - SE_EVENT_BUS_HOST=selenium-event-bus
  23. selenium-session-queue:
  24. image: selenium/session-queue:4.37.0-20251020
  25. container_name: selenium-session-queue
  26. restart: unless-stopped
  27. ports:
  28. - "5559:5559"
  29. selenium-distributor:
  30. image: selenium/distributor:4.37.0-20251020
  31. container_name: selenium-distributor
  32. restart: unless-stopped
  33. ports:
  34. - "5553:5553"
  35. depends_on:
  36. - selenium-event-bus
  37. - selenium-sessions
  38. - selenium-session-queue
  39. environment:
  40. - SE_EVENT_BUS_HOST=selenium-event-bus
  41. - SE_SESSIONS_MAP_HOST=selenium-sessions
  42. - SE_SESSION_QUEUE_HOST=selenium-session-queue
  43. selenium-router:
  44. image: selenium/router:4.37.0-20251020
  45. container_name: selenium-router
  46. restart: unless-stopped
  47. ports:
  48. - "4444:4444"
  49. depends_on:
  50. - selenium-distributor
  51. - selenium-sessions
  52. - selenium-session-queue
  53. environment:
  54. - SE_DISTRIBUTOR_HOST=selenium-distributor
  55. - SE_SESSIONS_MAP_HOST=selenium-sessions
  56. - SE_SESSION_QUEUE_HOST=selenium-session-queue
  57. chrome:
  58. image: selenium/node-chrome:4.37.0-20251020
  59. restart: unless-stopped
  60. platform: linux/amd64
  61. shm_size: 2gb
  62. depends_on:
  63. - selenium-event-bus
  64. environment:
  65. - SE_EVENT_BUS_HOST=selenium-event-bus
  66. - JAVA_OPTS=-Xmx1024m -Xms512m
  67. - SCREEN_WIDTH=1920
  68. - SCREEN_HEIGHT=1080
  69. - SCREEN_DEPTH=24
  70. - SCREEN_DPI=100
  71. - SE_NODE_SESSION_TIMEOUT=120
  72. ports:
  73. - "5900:5900"
  74. - "7900:7900"
  75. edge:
  76. image: selenium/node-edge:4.37.0-20251020
  77. restart: unless-stopped
  78. platform: linux/amd64
  79. shm_size: 2gb
  80. depends_on:
  81. - selenium-event-bus
  82. environment:
  83. - SE_EVENT_BUS_HOST=selenium-event-bus
  84. - SCREEN_WIDTH=1920
  85. - SCREEN_HEIGHT=1080
  86. - SCREEN_DEPTH=24
  87. - SCREEN_DPI=100
  88. - SE_NODE_SESSION_TIMEOUT=120
  89. ports:
  90. - "5901:5900"
  91. - "7901:7900"
  92. firefox:
  93. image: selenium/node-firefox:4.37.0-20251020
  94. restart: unless-stopped
  95. shm_size: 2gb
  96. depends_on:
  97. - selenium-event-bus
  98. environment:
  99. - SE_EVENT_BUS_HOST=selenium-event-bus
  100. - SCREEN_WIDTH=1920
  101. - SCREEN_HEIGHT=1080
  102. - SCREEN_DEPTH=24
  103. - SCREEN_DPI=100
  104. - SE_NODE_SESSION_TIMEOUT=120
  105. ports:
  106. - "5902:5900"
  107. - "7902:7900"