From 5b3b81e7e4b42c3a4cb7eda47ddae4f427e8dd37 Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Sat, 27 Dec 2025 11:47:46 +0100 Subject: [PATCH] Revert "Do not use listen_address 0.0.0.0 for Docker (has no desirable effect)" This reverts commit 7ad44edd18fe9e28d0c77c3e24893f0248a792ad. Listen address 0.0.0.0 is necessary for docker, because port forwarding for Docker is just NAT, so port forwarding alone is not sufficient Fixes #879 --- DOCKER.md | 2 ++ Dockerfile | 1 + 2 files changed, 3 insertions(+) diff --git a/DOCKER.md b/DOCKER.md index 08348182..bb77040c 100644 --- a/DOCKER.md +++ b/DOCKER.md @@ -27,6 +27,8 @@ special settings for Docker usage: ``` # Disable the GUI log window since it's not supported in Docker gui_log_window: False +# Listen on all interfaces for the web dashboard to be accessible from outside the container +web_dashboard_listen_address: 0.0.0.0 # Disable opening the web dashboard on launch (not possible within the container) web_dashboard_open_on_launch: False ``` diff --git a/Dockerfile b/Dockerfile index e58d821b..1dccaf40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,6 +64,7 @@ ENV SERENA_HOME=/workspaces/serena/config RUN mkdir -p $SERENA_HOME RUN cp src/serena/resources/serena_config.template.yml $SERENA_HOME/serena_config.yml RUN sed -i 's/^gui_log_window: .*/gui_log_window: False/' $SERENA_HOME/serena_config.yml +RUN sed -i 's/^web_dashboard_listen_address: .*/web_dashboard_listen_address: 0.0.0.0/' $SERENA_HOME/serena_config.yml RUN sed -i 's/^web_dashboard_open_on_launch: .*/web_dashboard_open_on_launch: False/' $SERENA_HOME/serena_config.yml # Create virtual environment and install dependencies