diff --git a/Dockerfile b/Dockerfile index ffdf721..6d06c5e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -81,7 +81,7 @@ RUN mkdir -p $PLAYWRIGHT_BROWSERS_PATH # Install recommended: Google Chrome (instead of just Chromium for better undetectability) # The 'patchright install chrome' command might download and place it. # The '--with-deps' equivalent for patchright install is to run 'patchright install-deps chrome' after. -RUN patchright install chrome --with-deps +# RUN patchright install chrome --with-deps # Alternative: Install Chromium if Google Chrome is problematic in certain environments RUN patchright install chromium --with-deps diff --git a/docker-compose.yml b/docker-compose.yml index 9b850e9..b7d9820 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -43,11 +43,11 @@ services: - BROWSER_USE_LOGGING_LEVEL=${BROWSER_USE_LOGGING_LEVEL:-info} # Browser Settings - - BROWSER_PATH=/usr/bin/google-chrome - - BROWSER_USER_DATA=/app/data/chrome_data + - BROWSER_PATH= + - BROWSER_USER_DATA= - BROWSER_DEBUGGING_PORT=${BROWSER_DEBUGGING_PORT:-9222} - - BROWSER_DEBUGGING_HOST=0.0.0.0 - - USE_OWN_BROWSER=true + - BROWSER_DEBUGGING_HOST=localhost + - USE_OWN_BROWSER=false - KEEP_BROWSER_OPEN=true - BROWSER_CDP=${BROWSER_CDP:-} # e.g., http://localhost:9222 diff --git a/src/webui/components/browser_settings_tab.py b/src/webui/components/browser_settings_tab.py index f949357..e502d9e 100644 --- a/src/webui/components/browser_settings_tab.py +++ b/src/webui/components/browser_settings_tab.py @@ -52,7 +52,7 @@ def create_browser_settings_tab(webui_manager: WebuiManager): with gr.Row(): use_own_browser = gr.Checkbox( label="Use Own Browser", - value=os.getenv("USE_OWN_BROWSER", False), + value=False, info="Use your existing browser instance", interactive=True ) diff --git a/supervisord.conf b/supervisord.conf index f6cd33b..6010766 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -65,21 +65,6 @@ startretries=5 startsecs=3 depends_on=x11vnc -[program:persistent_browser] -environment=START_URL="data:text/html,