Files
ansible/hermes_squid/stack-compose.yml
T
2026-08-05 11:10:16 +02:00

161 lines
3.5 KiB
YAML

version: "3.9"
services:
squid:
image: ubuntu/squid:latest
hostname: squid
networks:
- hermes_proxy
- squid_egress
ports:
- target: 3128
published: 3128
protocol: tcp
configs:
- source: squid_conf
target: /etc/squid/squid.conf
volumes:
- squid_logs:/var/log/squid
environment:
TZ: UTC
deploy:
replicas: 1
resources:
limits:
memory: 128M
pids: 256
reservations:
memory: 128M
restart_policy:
condition: on-failure
sarg:
build: .
image: registry.rudolf.keenetic.link/sarg:${version}
hostname: sarg
networks:
- admin
- ingress
ports:
- target: 80
published: 8090
protocol: tcp
volumes:
- squid_logs:/var/log/squid:ro
- squid_reports:/www
deploy:
replicas: 1
resources:
limits:
memory: 128M
pids: 128
reservations:
memory: 128M
restart_policy:
condition: on-failure
hermes-gateway:
image: nousresearch/hermes-agent:latest
command: gateway run
networks:
- hermes_proxy
volumes:
- hermes_gateway_data:/opt/data
environment:
HERMES_DASHBOARD: "1"
HERMES_DASHBOARD_HOST: "0.0.0.0"
HERMES_DASHBOARD_BASIC_AUTH_USERNAME: admin
HERMES_DASHBOARD_BASIC_AUTH_PASSWORD: admin
HERMES_AGENT_URL: http://hermes-agent:8000
HTTP_PROXY: http://squid:3128
HTTPS_PROXY: http://squid:3128
http_proxy: http://squid:3128
https_proxy: http://squid:3128
NO_PROXY: localhost,127.0.0.1,squid,hermes-gateway,hermes-agent
no_proxy: localhost,127.0.0.1,squid,hermes-gateway,hermes-agent
depends_on:
- squid
deploy:
replicas: 1
resources:
limits:
memory: 256M
pids: 512
reservations:
memory: 256M
restart_policy:
condition: on-failure
hermes-ui:
image: nginx:alpine
hostname: hermes-ui
networks:
- hermes_proxy
- default
ports:
- target: 8087
published: 8088
protocol: tcp
configs:
- source: nginx_hermes_conf
target: /etc/nginx/conf.d/default.conf
depends_on:
- hermes-gateway
deploy:
replicas: 1
resources:
limits:
memory: 32M
pids: 128
reservations:
memory: 32M
restart_policy:
condition: on-failure
# hermes-agent:
# image: nousresearch/hermes-agent:latest
# command: sleep infinity
# networks:
# - hermes_proxy
# volumes:
# - hermes_agent_data:/opt/data
# environment:
# TELEGRAM_HOME_CHANNEL_NAME: Default
# HERMES_GATEWAY_URL: http://hermes-gateway:8000
# HTTP_PROXY: http://squid:3128
# HTTPS_PROXY: http://squid:3128
# http_proxy: http://squid:3128
# https_proxy: http://squid:3128
# NO_PROXY: localhost,127.0.0.1,squid,hermes-gateway,hermes-agent
# no_proxy: localhost,127.0.0.1,squid,hermes-gateway,hermes-agent
# depends_on:
# - squid
# deploy:
# replicas: 1
# restart_policy:
# condition: on-failure
networks:
hermes_proxy:
driver: overlay
attachable: true
internal: true
squid_egress:
driver: overlay
admin:
driver: overlay
attachable: true
configs:
squid_conf:
file: ./squid.conf
nginx_hermes_conf:
file: ./nginx-hermes.conf
volumes:
squid_etc:
squid_logs:
squid_reports:
hermes_gateway_data:
hermes_agent_data: