some changes

This commit is contained in:
Skyber_2 2026-04-04 13:41:01 +03:00
parent bb5ce8e762
commit e2a1b93f60
5 changed files with 45 additions and 200 deletions

View file

@ -4,6 +4,10 @@ services:
context: ./hermes_code
dockerfile: Dockerfile
container_name: hermes-brain
sysctls:
- net.ipv4.tcp_keepalive_time=60
- net.ipv4.tcp_keepalive_intvl=10
- net.ipv4.tcp_keepalive_probes=3
env_file:
- .env
environment:
@ -20,6 +24,12 @@ services:
stdin_open: true
tty: true
restart: always
healthcheck:
test: ["CMD-SHELL", "pgrep -f 'python -m gateway.run' || exit 1"]
interval: 2m
timeout: 10s
retries: 3
start_period: 1m
networks:
- hermes-net
deploy:
@ -52,16 +62,14 @@ services:
- browser_profiles:/src/browser_data
restart: always
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:9222/json/version >/dev/null || exit 1"]
test: ["CMD", "curl", "-f", "http://localhost:9222/json/version"]
interval: 10s
timeout: 3s
retries: 12
start_period: 20s
timeout: 5s
retries: 5
start_period: 10s
tunnel:
image: cloudflare/cloudflared:latest
profiles:
- remote
container_name: hermes-tunnel
restart: always
command: tunnel --protocol http2 --url http://browser:6080 --no-tls-verify