edit docker files, add skill of browser-use in the workdir

This commit is contained in:
Кобылкевич Фёдор 2026-03-26 22:08:01 +03:00
parent 2f74daa8a6
commit 7832c30cc0
12 changed files with 421 additions and 4 deletions

View file

@ -11,6 +11,22 @@ services:
ports:
- "3000:3000"
chromium-gui:
build:
context: ./docker/chromium-gui
container_name: hermes-chromium-gui
restart: unless-stopped
shm_size: 1gb
ports:
- "127.0.0.1:6080:6080"
- "127.0.0.1:5900:5900"
- "127.0.0.1:9223:9223"
healthcheck:
test: [ "CMD", "curl", "-fsS", "http://localhost:9223/json/version" ]
interval: 10s
timeout: 5s
retries: 6
hermes-agent:
build: .
container_name: hermes-agent
@ -19,13 +35,15 @@ services:
tty: true
depends_on:
- chromium
- chromium-gui
env_file:
- .env
- ./workspace/.env
- ./hermes_data/.env
environment:
- BROWSER_USE_CDP_URL=ws://chromium:3000/playwright?token=hermes-local
- BROWSER_USE_CDP_URL=${BROWSER_USE_CDP_URL:-http://chromium-gui:9223}
- BROWSER_USE_PYTHON=/opt/browser-use-venv/bin/python
volumes:
- ./workspace:/workspace
- ./hermes_data:/root/.hermes
working_dir: /workspace
command: tail -f /dev/null
command: [ "hermes", "gateway" ]