From d8fe94ca6daf32a4bfb985d6cf2a6af9ca4d28af Mon Sep 17 00:00:00 2001
From: kev <vimagick@gmail.com>
Date: Thu, 14 Oct 2021 18:20:57 +0800
Subject: [PATCH] update

---
 deepstack/docker-compose.yml         | 2 ++
 selenium/docker-compose.yml          | 3 +++
 selenium/grid/docker-compose-hub.yml | 1 +
 squid/Dockerfile                     | 2 +-
 squid/arm/Dockerfile                 | 2 +-
 5 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/deepstack/docker-compose.yml b/deepstack/docker-compose.yml
index ee1a878..ffed210 100644
--- a/deepstack/docker-compose.yml
+++ b/deepstack/docker-compose.yml
@@ -10,6 +10,8 @@ services:
       - DEEPSTACK_IP=deepstack
       - DEEPSTACK_PORT=5000
       - DEEPSTACK_TIMEOUT=20
+    depends_on:
+      - deepstack
     restart: unless-stopped
 
   deepstack:
diff --git a/selenium/docker-compose.yml b/selenium/docker-compose.yml
index e1e023e..82dd63c 100644
--- a/selenium/docker-compose.yml
+++ b/selenium/docker-compose.yml
@@ -8,6 +8,7 @@ services:
       - "4442:4442"
       - "4443:4443"
       - "4444:4444"
+    shm_size: 2gb
     restart: unless-stopped
 
   chrome:
@@ -18,6 +19,7 @@ services:
       - SE_EVENT_BUS_HOST=hub
       - SE_EVENT_BUS_PUBLISH_PORT=4442
       - SE_EVENT_BUS_SUBSCRIBE_PORT=4443
+      - SE_NODE_OVERRIDE_MAX_SESSIONS=true
       - SE_NODE_MAX_SESSIONS=4
     shm_size: 2gb
     depends_on:
@@ -33,4 +35,5 @@ services:
     environment:
       - DISPLAY_CONTAINER_NAME=chrome
       - FILE_NAME=output.mp4
+    shm_size: 2gb
     restart: unless-stopped
diff --git a/selenium/grid/docker-compose-hub.yml b/selenium/grid/docker-compose-hub.yml
index e33ffdb..3fcf4b7 100644
--- a/selenium/grid/docker-compose-hub.yml
+++ b/selenium/grid/docker-compose-hub.yml
@@ -15,4 +15,5 @@ services:
       interval: 15s
       timeout: 30s
       retries: 5
+    shm_size: 2gb
     restart: unless-stopped
diff --git a/squid/Dockerfile b/squid/Dockerfile
index d899b67..fe00c58 100644
--- a/squid/Dockerfile
+++ b/squid/Dockerfile
@@ -10,4 +10,4 @@ RUN apk add --no-cache squid
 
 EXPOSE 3128/tcp 3130/udp
 
-ENTRYPOINT ["/usr/sbin/squid", "-NYCd1"]
+ENTRYPOINT ["/usr/sbin/squid", "--foreground", "-YCd1"]
diff --git a/squid/arm/Dockerfile b/squid/arm/Dockerfile
index 96cd08a..4bdf979 100644
--- a/squid/arm/Dockerfile
+++ b/squid/arm/Dockerfile
@@ -10,4 +10,4 @@ RUN apk add --no-cache squid
 
 EXPOSE 3128/tcp 3130/udp
 
-ENTRYPOINT ["/usr/sbin/squid", "-NYCd1"]
+ENTRYPOINT ["/usr/sbin/squid", "--foreground", "-YCd1"]