2019-11-08 18:37:37 +02:00
|
|
|
version: '3.7'
|
|
|
|
|
2019-06-26 23:15:23 +02:00
|
|
|
services:
|
2019-11-08 18:37:37 +02:00
|
|
|
|
2019-06-26 23:15:23 +02:00
|
|
|
browserless:
|
2019-11-08 18:37:37 +02:00
|
|
|
image: browserless/chrome:1-chrome-stable
|
2019-06-26 23:15:23 +02:00
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
environment:
|
|
|
|
- DEBUG=browserless/chrome
|
|
|
|
- MAX_CONCURRENT_SESSIONS=10
|
|
|
|
- CONNECTION_TIMEOUT=300000
|
|
|
|
- MAX_QUEUE_LENGTH=10
|
|
|
|
- ENABLE_CORS=true
|
|
|
|
- EXIT_ON_HEALTH_FAILURE=true
|
|
|
|
deploy:
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: 1024M
|
|
|
|
replicas: 56
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
2019-11-08 18:37:37 +02:00
|
|
|
|
2019-11-11 17:42:43 +02:00
|
|
|
cleanup:
|
|
|
|
image: docker
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
command: docker system prune --all --force
|
|
|
|
deploy:
|
|
|
|
mode: global
|
|
|
|
restart_policy:
|
|
|
|
delay: 24h
|
|
|
|
|
2019-06-26 23:15:23 +02:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
ipam:
|
|
|
|
config:
|
|
|
|
- subnet: 192.168.128.0/24
|