mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
feat: agent browser (#200)
* feat: agent browser * chore: complete docker and action config * feat: more actions * feat: browser tab switch * fix: browser build * fix: lint * fix: migrations
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
FROM mcr.microsoft.com/playwright:v1.50.0-noble
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends unzip && rm -rf /var/lib/apt/lists/*
|
||||
RUN curl -fsSL https://bun.sh/install | bash
|
||||
ENV PATH="/root/.bun/bin:${PATH}"
|
||||
|
||||
WORKDIR /workspace
|
||||
@@ -47,6 +47,11 @@ host = "agent"
|
||||
port = 8081
|
||||
server_addr = "server:8080"
|
||||
|
||||
[browser_gateway]
|
||||
host = "browser"
|
||||
port = 8083
|
||||
server_addr = "server:8080"
|
||||
|
||||
[web]
|
||||
host = "0.0.0.0"
|
||||
port = 8082
|
||||
|
||||
@@ -137,6 +137,25 @@ services:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
|
||||
browser:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: devenv/Dockerfile.browser
|
||||
container_name: memoh-dev-browser
|
||||
working_dir: /workspace/apps/browser
|
||||
command: ["bun", "run", "--watch", "src/index.ts"]
|
||||
volumes:
|
||||
- ..:/workspace
|
||||
- node_modules:/workspace/node_modules
|
||||
ports:
|
||||
- "8083:8083"
|
||||
depends_on:
|
||||
deps:
|
||||
condition: service_completed_successfully
|
||||
server:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
driver: local
|
||||
|
||||
Reference in New Issue
Block a user