Forge as the Docker host¶
Running the fleet's containers on the
forgeLAN host while the Mac runs the terminal dash.
The Mac runs the terminal dash (tools/dash tui). Forge runs the containers. The registry is still _data/projects.yml — Docker is live state, not a second inventory.
Which services run on forge is now declared, not rebuilt. _data/fleet.yml nodes: places each hub service on the Mac (the edge) or forge (a workload node); tools/dash node plan shows the move, OpenTofu (tools/dash infra) owns forge's network and data volumes, and an SSH link keeps every address the same. That is docs/PLATFORM.md and ADR 0003. The whole-hub rebuild below is the legacy path, kept for an empty forge.
Mac TUI --ssh://forge--> forge dockerd
│ │
└─ projects.yml ├─ ~/dev/<slug>/docker-compose.yml
project_health.yml ├─ postgres / redis / grafana (always-on)
└─ app containers
Why not docker context + Mac bind mounts¶
docker -H ssh://forge talks to forge's daemon. Compose bind mounts (.:/workspace) are evaluated on the daemon. A Mac path like /Users/bamr87/bamr87 does not exist on forge, so docker compose --context forge up from the Mac will fail or mount an empty dir.
Rule: start compose on forge, from a tree that already lives there (~/dev/<slug>).
Do not publish the Docker TCP socket. SSH (ssh://forge) is the API.
One-time¶
tools/dash host setup # docker context "forge" → ssh://forge
# optional, for the Harness Console on the LAN:
ssh forge 'sudo ufw allow from 192.168.4.0/24 to any port 4001 proto tcp comment "dash console LAN"'
The legacy whole-hub rebuild (wipes containers + volumes)¶
Uses bamr87/.env for tokens and compose ports.
tools/dash host rebuild --wipe-all # rsync hub+.env, docker rm -f, DROP every volume, compose --build
tools/dash host ps
tools/dash host up <slug> # launch one submodule compose in ~/dev/<slug>
tools/dash tui # Apps tab Docker column + the Docker tab
Hub URLs on the LAN (ports from .env):
| Service | URL |
|---|---|
| Console (review / launch) | http://forge.local:4001 (compose path); the bashOS service binds loopback: below |
| Devenv (exec to build) | ssh forge 'docker exec -it bamr87-devenv bash' |
| Wiki | http://forge.local:3000 |
| MkDocs | http://forge.local:8001 |
| Jekyll (inside devenv) | http://forge.local:4000 |
| CV / Vite | http://forge.local:5000 / :5173 |
| Phoenix | http://forge.local:6006 |
| Postgres | forge.local:5432 |
| Redis | forge.local:6379 |
| pgAdmin | http://forge.local:5050 |
The TUI polls every endpoint in DASH_DOCKER_HOST, which defaults to local,ssh://forge: this Mac's Docker, where tools/dash up runs the shared core, and forge. Its Docker tab is docker ps -a on each host. The Apps Docker column is a join onto the registry: the com.bamr87.fleet.project label first, then compose project / container name / <name>- prefix (longest registry name wins).
Label app services so the join is exact. It is the same UPS-OPS-17 label the log shipper keys on, so one label serves both:
The older bamr87.project label still works, but new services should use the standard one.
The Harness Console as a bashOS service¶
forge also runs the bashOS OS layer (bashos os install, 2026-11-01). That serves the hub's tools/console without Docker: bashos-harness.service, a systemd user unit, runs tools/console/run.sh from the checkout in ~/dev/bamr87, restarts it if it dies, and starts at boot (linger is on).
- Reaching it: it binds
127.0.0.1:4001, so use a tunnel:ssh -N -L 4001:127.0.0.1:4001 forge, then open http://localhost:4001. If the Mac's owntools/dash upconsole already holds :4001, use another local port (-L 14001:127.0.0.1:4001). - On the LAN: set
BASHOS_HARNESS_HOSTin/etc/bashos/os.confand putDASH_CONSOLE_TOKENin~/.config/bashos/harness.env(mode 0600).bashos-harnessrefuses a LAN address without the token.BASHOS_LAN_CIDRadds the ufw rule, like the one-time step above. - Operating it:
bashos os statusgives the verdicts.bashos os harness status|logs|restart|urlcovers the unit. - One owner for :4001. The compose
consoleservice (tools/dash host rebuild,compose/forge.yml) andbashos-harnesscan't both bind it. Either stop the service before a rebuild (bashos os harness stop), or setBASHOS_HARNESS=composeso systemd supervises the compose console itself.
forge can also boot the whole bashOS image from a USB stick, once, without touching its disk. It then runs as forge-bashos.local, serves the same console on its loopback, and offers the monitor's keyboard and mouse over VNC through ssh. While it does, ssh forge and ssh://forge (the TUI's Docker poll) don't answer. sudo reboot returns to Debian. How: bashOS docs/OS.md § forge, step by step.
What belongs on forge¶
| On forge | Not on forge |
|---|---|
| App compose stacks, Postgres, Redis, Grafana | bamr87 devenv image (too heavy for the i7-3820) |
| Jekyll/site compose that is already small | Docker Desktop as the source of truth |
Portainer :9443 |
Binding 127.0.0.1 if you want LAN access from the Mac |
The hub compose/forge.yml overlay is only for a checkout on forge. Prefer per-app compose in ~/dev/<slug>.