edit Dockerfile, docker-compose.yml, .dockerignore
This commit is contained in:
parent
2261cbf1a0
commit
d4534ccc29
3 changed files with 32 additions and 3 deletions
|
|
@ -1,10 +1,17 @@
|
||||||
venv/
|
venv/
|
||||||
.venv/
|
.venv/
|
||||||
|
node_modules/
|
||||||
|
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.pyc
|
*.pyc
|
||||||
|
*.pyo
|
||||||
|
*.pyd
|
||||||
|
|
||||||
.git/
|
.git/
|
||||||
node_modules/
|
.github/
|
||||||
|
|
||||||
.env
|
.env
|
||||||
config.yaml
|
config.yaml
|
||||||
sessions/
|
sessions/
|
||||||
logs/
|
logs/
|
||||||
|
state.db
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@ WORKDIR /app
|
||||||
|
|
||||||
COPY pyproject.toml requirements.txt* ./
|
COPY pyproject.toml requirements.txt* ./
|
||||||
|
|
||||||
|
RUN pip install --no-cache-dir browser-use playwright
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN pip install -e .
|
RUN pip install -e .
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,8 @@ services:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
environment:
|
environment:
|
||||||
- MAX_CONCURRENT_SESSIONS=5
|
- MAX_CONCURRENT_SESSIONS=5
|
||||||
|
- SCREEN_WIDTH=1280
|
||||||
|
- SCREEN_HEIGHT=720
|
||||||
- ENABLE_DEBUGGER=true
|
- ENABLE_DEBUGGER=true
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
|
|
@ -23,21 +25,39 @@ services:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app:ro
|
- .:/app:ro
|
||||||
|
|
||||||
- ~/.hermes/config.yaml:/app/config.yaml:ro
|
- ~/.hermes/config.yaml:/app/config.yaml:ro
|
||||||
- ~/.hermes/SOUL.md:/app/SOUL.md:ro
|
- ~/.hermes/SOUL.md:/app/SOUL.md:ro
|
||||||
|
- ~/.hermes/state.db:/app/state.db:rw
|
||||||
- ~/.hermes/sessions:/app/sessions:rw
|
- ~/.hermes/sessions:/app/sessions:rw
|
||||||
- ~/.hermes/logs:/app/logs:rw
|
- ~/.hermes/logs:/app/logs:rw
|
||||||
- ~/.hermes/workspaces:/app/workspaces:rw
|
- ~/.hermes/skills:/app/skills:rw
|
||||||
|
- ~/.hermes/sandboxes:/app/sandboxes:rw
|
||||||
|
- ~/.hermes/memories:/app/memories:rw
|
||||||
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
|
||||||
|
- /proc/meminfo:/host/meminfo:ro
|
||||||
|
- /proc/loadavg:/host/loadavg:ro
|
||||||
|
- /proc/uptime:/host/uptime:ro
|
||||||
|
|
||||||
|
- /home/skyber/disk_sensor:/host/disk_sensor:ro
|
||||||
|
- /home/skyber/workspaces/hermes:/data:rw
|
||||||
environment:
|
environment:
|
||||||
- BROWSER_URL=ws://browser:3000
|
- BROWSER_URL=ws://browser:3000
|
||||||
depend_on:
|
depends_on:
|
||||||
- browser
|
- browser
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- hermes-net
|
- hermes-net
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 1.5G
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
hermes-net:
|
hermes-net:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue