| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- 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:
- - /etc/localtime:/etc/localtime
- networks:
- - ai_network
- networks:
- ai_network:
- external: true
- name: main_ai_network
|