add dockerfile and docker-compose file

This commit is contained in:
Кобылкевич Фёдор 2026-03-26 10:50:19 +03:00
parent 566dc54610
commit 2f74daa8a6
4 changed files with 71 additions and 0 deletions

31
docker-compose.yml Normal file
View file

@ -0,0 +1,31 @@
services:
chromium:
image: ghcr.io/browserless/chromium:latest
container_name: hermes-chromium
restart: unless-stopped
environment:
- TOKEN=hermes-local
- TIMEOUT=120000
- CONCURRENT=5
shm_size: 1gb
ports:
- "3000:3000"
hermes-agent:
build: .
container_name: hermes-agent
restart: unless-stopped
stdin_open: true
tty: true
depends_on:
- chromium
env_file:
- .env
environment:
- BROWSER_USE_CDP_URL=ws://chromium:3000/playwright?token=hermes-local
- BROWSER_USE_PYTHON=/opt/browser-use-venv/bin/python
volumes:
- ./workspace:/workspace
- ./hermes_data:/root/.hermes
working_dir: /workspace
command: tail -f /dev/null