| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- version: '3.4'
- services:
- selenium-hub:
- image: selenium/hub:4.41.0
- container_name: selenium-hub
- ports:
- - "4444:4444" # WebDriver API
- - "4442:4442" # event bus publish
- - "4443:4443" # event bus subscribe
- environment:
- - SE_OPTS=--log-level INFO
- - TZ=Europe/Tallinn
- - LANG=C.UTF-8
- volumes:
- - /etc/localtime:/etc/localtime
- restart: unless-stopped
- networks:
- - ai_network
- selenium-chrome:
- image: selenium/node-chrome:4.41.0
- container_name: selenium-chrome
- depends_on:
- - selenium-hub
- environment:
- - SE_EVENT_BUS_HOST=selenium-hub
- - SE_EVENT_BUS_PUBLISH_PORT=4442
- - SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- - SE_NODE_MAX_SESSIONS=4
- - SE_NODE_OVERRIDE_MAX_SESSIONS=true
- - SE_VNC_NO_PASSWORD=1 # Disable VNC password
- - TZ=Europe/Tallinn
- - LANG=C.UTF-8
- volumes:
- - /etc/localtime:/etc/localtime
- shm_size: 2gb
- restart: unless-stopped
- ports:
- - "7900:7900"
- networks:
- - ai_network
- selenium-firefox:
- image: selenium/node-firefox:4.41.0
- container_name: selenium-firefox
- depends_on:
- - selenium-hub
- environment:
- - SE_EVENT_BUS_HOST=selenium-hub
- - SE_EVENT_BUS_PUBLISH_PORT=4442
- - SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- - SE_NODE_MAX_SESSIONS=4
- - SE_NODE_OVERRIDE_MAX_SESSIONS=true
- - SE_VNC_NO_PASSWORD=1 # Disable VNC password
- - TZ=Europe/Tallinn
- - LANG=C.UTF-8
- volumes:
- - /etc/localtime:/etc/localtime
- # sudo cp -r ~/.mozilla/firefox/xxxx.default /tmp/firefox-profile
- - /tmp/firefox-profile:/home/seluser/firefox-profile:ro
- shm_size: 2gb
- restart: unless-stopped
- ports:
- - "7901:7900"
- networks:
- - ai_network
- browserless:
- image: browserless/chrome
- restart: unless-stopped
- ports:
- - "3001:3000"
- environment:
- - MAX_CONCURRENT_SESSIONS=5
- - CONNECTION_TIMEOUT=60000
- - TZ=Europe/Tallinn
- volumes:
- - /usr/share/zoneinfo:/usr/share/zoneinfo:ro
- - /etc/localtime:/etc/localtime:ro
- - /etc/localtime:/etc/localtime
- networks:
- - ai_network
- networks:
- ai_network:
- external: true
- name: main_ai_network
|