Docker Compose: This is typically included with Docker Desktop, but you can also install it separately if needed.
Git: To clone the repository.
Step 2: Clone the Repository
Open your terminal and run the following command to clone the web-ui repository:
bash
git clone https://github.com/browser-use/web-ui.git
cd web-ui
Step 3: Configure Environment Variables
Before starting the Docker container, copy the example environment variables file and configure it:
bash
cp .env.example .env
Edit the .env file with your preferred text editor and add your API keys and any other required configurations. You can specify settings such as:
LLM API Keys (like OPENAI_API_KEY)
Browser Settings (like CHROME_PERSISTENT_SESSION)
Step 4: Run with Docker
You can run the application using Docker Compose. There are two main configurations to choose from:
Default Mode (browser closes after AI tasks):
bash
docker compose up --build
Persistent Browser Mode (browser stays open between AI tasks):
bash
CHROME_PERSISTENT_SESSION=true docker compose up --build
Step 5: Access the Application
Once the container is running, you can access the WebUI through your web browser at:
WebUI: http://localhost:7788
VNC Viewer (to see browser interactions): http://localhost:6080/vnc.html
The default VNC password is vncpassword, which you can change by updating the VNC_PASSWORD variable in your .env file.
Step 6: Manage the Container
You can manage the running container with the following Docker Compose commands:
View logs:
bash
docker compose logs -f
Stop the container:
bash
[Redacted Person] compose down
Summary
By following these steps, you can successfully install and run the latest version of the web-ui repository using Docker. Make sure to configure your environment variables in the .env file to customize your setup.