Compare commits
6 Commits
6b506163e9
...
feat/herme
| Author | SHA1 | Date | |
|---|---|---|---|
| 62fa78b97f | |||
| cd9bda57c3 | |||
| 735ddcb555 | |||
| 817f1cbcc2 | |||
| 8e09e5bdfe | |||
| d94014f19a |
@@ -70,6 +70,30 @@ services:
|
||||
- "26"
|
||||
networks:
|
||||
- ai_backend
|
||||
- ai_net
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=ai_net"
|
||||
|
||||
# Router for HTTP + redirect to HTTPS
|
||||
- "traefik.http.routers.hermes-web-http.rule=Host(`hermes.lazyworkhorse.net`)"
|
||||
- "traefik.http.routers.hermes-web-http.entrypoints=web"
|
||||
- "traefik.http.routers.hermes-web-http.middlewares=redirect-to-https"
|
||||
|
||||
# Router for HTTPS with TLS — protected by Authelia
|
||||
- "traefik.http.routers.hermes-web-https.rule=Host(`hermes.lazyworkhorse.net`)"
|
||||
- "traefik.http.routers.hermes-web-https.entrypoints=websecure"
|
||||
- "traefik.http.routers.hermes-web-https.tls=true"
|
||||
- "traefik.http.routers.hermes-web-https.tls.certresolver=njalla"
|
||||
- "traefik.http.routers.hermes-web-https.middlewares=hermes-auth"
|
||||
|
||||
# Authelia forwardAuth
|
||||
- "traefik.http.middlewares.hermes-auth.forwardauth.address=http://authelia:9091/api/verify?rd=https://auth.lazyworkhorse.net/"
|
||||
- "traefik.http.middlewares.hermes-auth.forwardauth.trustforwardheader=true"
|
||||
- "traefik.http.middlewares.hermes-auth.forwardauth.authresponseheaders=X-Forwarded-User,X-Forwarded-Groups"
|
||||
|
||||
# Service Loadbalancer (dashboard port 9119)
|
||||
- "traefik.http.services.hermes-web.loadbalancer.server.port=9119"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsS http://localhost:8642/health && curl -fsS http://localhost:9119/api/status || exit 1"]
|
||||
interval: 15s
|
||||
|
||||
@@ -29,10 +29,12 @@ RUN pnpm install --frozen-lockfile && pnpm build
|
||||
# ---------- Stage 2: Hermes Agent + Workspace runtime ----------
|
||||
FROM nousresearch/hermes-agent:latest
|
||||
|
||||
# ---------- Install Node.js + tmux for Workspace + Swarm ----------
|
||||
# ---------- Install tmux for Swarm workers + curl for health checks ----------
|
||||
# Note: Node.js is already shipped with the base hermets-agent image; apt's nodejs
|
||||
# would be older and could conflict. Only add what's missing.
|
||||
USER root
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
nodejs tmux ca-certificates curl \
|
||||
tmux curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# ---------- Overlay our forked Hermes source ----------
|
||||
@@ -115,6 +117,8 @@ USER hermes
|
||||
ENV HERMES_HOME=/opt/data
|
||||
ENV PATH="/opt/data/.local/bin:${PATH}"
|
||||
ENV CHROME_EXECUTABLE=/opt/hermes/.playwright/chromium/chrome-linux/chrome
|
||||
ENV HOST=0.0.0.0
|
||||
ENV NODE_ENV=production
|
||||
|
||||
RUN chown -R hermes:hermes /opt/hermes/tools /opt/hermes/toolsets.py
|
||||
|
||||
|
||||
Reference in New Issue
Block a user