edit Dockerfile, docker compose
This commit is contained in:
parent
d4534ccc29
commit
c0b3dd4fb9
2 changed files with 17 additions and 17 deletions
|
|
@ -6,11 +6,13 @@ RUN apt-get update && apt-get install -y \
|
||||||
docker.io \
|
docker.io \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /app
|
RUN mkdir -p /app/hermes_code /app/hermes_data
|
||||||
|
|
||||||
|
WORKDIR /app/hermes_code
|
||||||
|
|
||||||
COPY pyproject.toml requirements.txt* ./
|
COPY pyproject.toml requirements.txt* ./
|
||||||
|
|
||||||
RUN pip install --no-cache-dir browser-use playwright
|
RUN pip install --no-cache-dir browser-use playwright python-telegram-bot
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
browser:
|
browser:
|
||||||
image: browserless/chrome:latest
|
image: browserless/chrome:latest
|
||||||
|
|
@ -24,27 +22,27 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app:ro
|
- .:/app/hermes_code:ro
|
||||||
|
|
||||||
- ~/.hermes/config.yaml:/app/config.yaml:ro
|
- ~/.hermes/config.yaml:/app/hermes_data/config.yaml:ro
|
||||||
- ~/.hermes/SOUL.md:/app/SOUL.md:ro
|
- ~/.hermes/SOUL.md:/app/hermes_data/SOUL.md:ro
|
||||||
- ~/.hermes/state.db:/app/state.db:rw
|
- ./.env:/app/hermes_data/.env:ro
|
||||||
- ~/.hermes/sessions:/app/sessions:rw
|
|
||||||
- ~/.hermes/logs:/app/logs:rw
|
- ~/.hermes/state.db:/app/hermes_data/state.db:rw
|
||||||
- ~/.hermes/skills:/app/skills:rw
|
- ~/.hermes/sessions:/app/hermes_data/sessions:rw
|
||||||
- ~/.hermes/sandboxes:/app/sandboxes:rw
|
- ~/.hermes/logs:/app/hermes_data/logs:rw
|
||||||
- ~/.hermes/memories:/app/memories:rw
|
- ~/.hermes/skills:/app/hermes_data/skills:rw
|
||||||
|
- ~/.hermes/sandboxes:/app/hermes_data/sandboxes:rw
|
||||||
|
- ~/.hermes/memories:/app/hermes_data/memories:rw
|
||||||
|
- ~/workspaces/hermes:/app/hermes_data/workspace:rw
|
||||||
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
|
||||||
- /proc/meminfo:/host/meminfo:ro
|
- /proc/meminfo:/host/meminfo:ro
|
||||||
- /proc/loadavg:/host/loadavg:ro
|
- /proc/loadavg:/host/loadavg:ro
|
||||||
- /proc/uptime:/host/uptime:ro
|
- /proc/uptime:/host/uptime:ro
|
||||||
|
- ~/disk_sensor:/host/disk_sensor: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
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue