1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/selenium/docker-compose.yml

57 lines
1.3 KiB
YAML
Raw Normal View History

2022-01-11 11:33:20 +02:00
#
# https://github.com/SeleniumHQ/docker-selenium/blob/trunk/docker-compose-v3.yml
2023-10-24 12:31:16 +02:00
# https://github.com/SeleniumHQ/docker-selenium/blob/trunk/README.md#configuring-the-containers
2022-01-11 11:33:20 +02:00
#
2021-09-16 09:46:38 +02:00
version: "3.8"
services:
hub:
image: selenium/hub:4
ports:
- "4442:4442"
- "4443:4443"
- "4444:4444"
2023-10-24 12:31:16 +02:00
environment:
- SE_JAVA_OPTS=-Xms256m -Xmx2048m
2021-09-16 09:46:38 +02:00
restart: unless-stopped
chrome:
image: selenium/node-chrome:4
ports:
- "5900:5900"
2021-10-14 12:41:53 +02:00
- "7900:7900"
2021-09-16 09:46:38 +02:00
environment:
- SE_EVENT_BUS_HOST=hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
2021-10-14 12:20:57 +02:00
- SE_NODE_OVERRIDE_MAX_SESSIONS=true
2021-09-16 09:46:38 +02:00
- SE_NODE_MAX_SESSIONS=4
2021-12-28 11:45:18 +02:00
- SE_NODE_SESSION_TIMEOUT=180
2024-04-22 05:28:47 +02:00
- SE_ENABLE_BROWSER_LEFTOVERS_CLEANUP=true
2023-10-24 12:31:16 +02:00
- SE_OPTS=--log-level FINE
- SE_JAVA_OPTS=-Xms256m -Xmx2048m
2022-01-11 11:33:20 +02:00
- START_XVFB=true
- VNC_NO_PASSWORD=1
- VNC_VIEW_ONLY=1
2021-09-16 09:46:38 +02:00
shm_size: 2gb
depends_on:
- hub
restart: unless-stopped
2023-10-25 07:55:32 +02:00
video:
2024-04-15 10:51:21 +02:00
image: selenium/video:ffmpeg-6.1-20240402
2023-10-25 07:55:32 +02:00
volumes:
- ./data:/videos
ports:
- "9000:9000"
environment:
- DISPLAY_CONTAINER_NAME=chrome
- SE_VIDEO_FOLDER=/videos
- FILE_NAME=video.mp4
- VIDEO_READY_PORT=9000
depends_on:
- chrome
restart: unless-stopped