version: '3.7' services: #--------------# zalenium: image: "dosel/zalenium" hostname: zalenium tty: true volumes: - ./tmp:/home/seluser/videos - /var/run/docker.sock:/var/run/docker.sock ports: - 4444 # Using just container port (an ephemeral host port is chosen) command: start --sendAnonymousUsageInfo false environment: TZ: Pacific/Auckland shm_size: '2gb' # Needed for Firefox to work from docker in docker test: build: . command: ./run_tests_when_ready.sh volumes: - .:/mysuite depends_on: - zalenium environment: WEBDRIVER_URL: http://zalenium:4444/wd/hub # the WebDriver container, referenced by its service name WEBDRIVER_CHROMEOPTIONS: start-maximized disable-popup-blocking no-sandbox disable-dev-shm-usage # additional chrome args separated by a space remote: "true" BROWSER: "${BROWSER}" client_id: "${client_id}" password: "${password}" client_secret: "${client_secret}"