Answer the question
In order to leave comments, you need to log in
How to use docker in multiple threads?
At the moment I am running docker like this
docker run -e "CONNECTION_TIMEOUT=600000" -p 127.0.0.1:3000:3000 --restart always -d --name browserless browserless/chrome
$options=array(
'headless'=>false,
'defaultViewport'=>array('width'=>1440,'height'=>900,'isMobile'=>false),
'ignoreHTTPSErrors'=>true,
'ignoreDefaultArgs'=>true,
'args'=>array('--incognito',
'--0',
'--window-size=1440,900',
'--no-sandbox',
'--disable-setuid-sandbox',
'--ignore-certifcate-errors',
'--ignore-certifcate-errors-spki-list',
'--shm-size=2gb')
);
$options['browserWSEndpoint']='ws://localhost:3000/?ignoreDefaultArgs=true&headless=false&'.implode('&',$options['args']);
$browser=$puppeteer->connect($options);
Answer the question
In order to leave comments, you need to log in
Good time.
In general, if I understood everything correctly, you need to make a docker-compose.yml in which to describe this service.
Next, you need to use a command like:
Documentation
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question