Files
Gabriel Brown 913a57f8a6 Snapshot both servers: the VPS catalog moves to server/vps, the home server joins as server/home
The catalog in server/containers had drifted from the VPS. Eleven compose
files and twelve units no longer matched what runs, and two running
services, Gbrown_Agent and BillTracker, were missing. server/vps is now a
copy of the live files, and panama-server reads from it.

server/home holds the home server's services in the same shape. They still
run under Docker, so the podman units there are drafts for a later move, and
nothing installs from that tree. PostHog, Sentry and Plausible are checkouts
of upstream repositories. Only their local files are kept, next to an
UPSTREAM file naming the repository and the exact commit.

Every secret in both trees is a ${VAR} reference named in .env.example, or
CHANGE_ME in files that are not compose files. The live servers still hold
some of those values inline, so a live file can differ from its copy on
those lines alone. Existing .env.example files keep their comments, with new
keys appended at the end.

The ignore rules and the secrets contract now cover both trees, plus the
volume/ and volumes/ directories the home server uses.
2026-10-06 10:52:47 -04:00

44 lines
1.8 KiB
YAML

# Hetzner VPS (junior.gib, rootless podman): ~/Server/Gbrown_Agent/compose.yml.
# Follows ~/Server/AGENTS.md. AGENT_INGEST_SECRET lives in ./.env (never
# committed). Started by podman-gbrown-agent.service, never by hand.
#
# SELinux:
# - The podman socket is mounted with no relabel flag, ever (AGENTS.md §6).
# - Reading it needs `label:disable`, the same exception portainer and uptime
# have as container-management tooling.
# - Because labeling is off, the NPM logs mount also takes no :z or :Z.
# NPM mounts its data dir with :Z (a private MCS pair), so relabeling it here
# would lock NPM out of its own data.
networks:
nginx-bridge:
external: true
services:
gbrown-agent:
image: git.gbrown.org/gib/gbrown-agent:latest
container_name: gbrown-agent
hostname: gbrown-agent
networks: ['nginx-bridge']
environment:
- TZ=America/New_York
- HOST_ID=vps
- INGEST_URL=https://convex.gbrown.org/ingest
- AGENT_INGEST_SECRET=${AGENT_INGEST_SECRET}
# Reach Convex over WireGuard, not Cloudflare: pin the hostname to the
# Home Server's proxy (192.168.1.2, routed via the `Home` interface). The
# URL stays https with the real hostname, so SNI and the certificate check
# are unchanged.
extra_hosts:
- 'convex.gbrown.org:192.168.1.2'
# The image runs as uid 1000 (bun). keep-id maps it to gib, who owns the
# podman socket and the NPM logs (AGENTS.md §3.2). Never `user: 1000:1000`.
userns_mode: 'keep-id:uid=1000,gid=1000'
volumes:
- /run/user/1000/podman/podman.sock:/var/run/docker.sock # no :Z, ever
- /home/gib/Server/Nginx_Proxy_Manager/volumes/data/logs:/npm-logs:ro
security_opt: ['label:disable', 'no-new-privileges:true']
read_only: true
cap_drop: [ALL]
restart: unless-stopped
stop_grace_period: 10s