Files
agentchat/docker/compose.yml
T
Gabriel Brown e57e5f7192
Build and Push agentchat Image / quality (push) Successful in 6s
Build and Push agentchat Image / build-image (push) Successful in 11s
Publish loopback port so the VPS's own agent bypasses the NPM LAN ACL
2026-08-13 10:12:11 -04:00

31 lines
1.1 KiB
YAML

# Deployed copy lives at junior.gib:~/Server/Agentchat/compose.yml — keep in sync.
networks:
nginx-bridge:
external: true # ALWAYS external; see the VPS ~/Server/AGENTS.md §5
services:
agentchat:
image: git.gbrown.org/gib/agentchat:latest
container_name: agentchat
hostname: agentchat
domainname: agentchat.gbrown.org
networks: ['nginx-bridge']
ports:
# Loopback only: lets this host's own agent reach the hub at
# http://127.0.0.1:8080 without going through NPM - the LAN access
# list there blocks the VPS's public IP. Unreachable from elsewhere.
- '127.0.0.1:8080:8080'
environment:
- TZ=America/New_York
- AGENTCHAT_DB=/data/agentchat.db
volumes:
# lowercase :z, NOT :Z — watchtower recreates drop the relabel flag, and
# :Z-category files lock the recreated container out (VPS AGENTS.md §6)
- ./data:/data:z
labels: ['com.centurylinklabs.watchtower.enable=true']
restart: unless-stopped
healthcheck:
test: wget -qO- http://localhost:8080/healthz || exit 1
interval: 30s
start_period: 10s