Repository navigation
fix(compose): run locally without the edge and xenforo_internal networks - #807
Merged
Merged
Conversation
The repo's compose file declared edge and xenforo_internal external, so `docker compose up` refused to start on a host that had neither, and README step 4 created only one of them. The local bot uses neither: xenforo_internal carried the forum database connection, gone since #798, and edge is the proxy's way to the panel. The bot keeps cavbot2_internal, which it shares with its Postgres. README step 4 now says the file is for local runs, that production's stack lives on the production host, and which networks the bot joins there and what each carries. The CAV_API_BASE_URL and PANEL_ADDR notes describe production's stack, and the troubleshooting row for a missing xenforo_internal is gone. Refs #652
SyniRon
enabled auto-merge (squash)
October 18, 2026 16:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The repo's compose file stops declaring external networks, so
docker compose upstarts on a fresh host:services: cavbot2: networks: - - xenforo_internal - cavbot2_internal - - edge networks: - xenforo_internal: - external: true - edge: - external: true cavbot2_internal:README step 4 says the file is for local runs. Production's stack lives on the production host, and a deploy sends that host only a version tag. The step names the networks the bot joins there:
edgexenforo_internal7cav-apiis on both, so droppingxenforo_internalfrom production's stack leaves lookups working overedge. TheCAV_API_BASE_URLandPANEL_ADDRnotes in the README and.env.examplenow describe production's stack and point to step 4. The troubleshooting row for a missingxenforo_internalis gone.Closes #799
Refs #652
Refs #798
Evidence
On a host with neither
edgenorxenforo_internal, afterdocker build -t cavbot2:latest .:docker compose up --no-startstops withnetwork xenforo_internal declared as external, but could not be found, exit 1.docker compose config --format json | jq '[.networks[] | select(.external)] | map(.name)'prints["edge","xenforo_internal"].After:
docker compose up --no-startcreatescavbot2andcavbot2-db, exit 0 in 0.7s. The jq check prints[].docker compose upwith the.env.examplecomposeBOT_DB_DSNand placeholder Discord values logsBot database migrated applied=22.Two mutants of
docker-compose.ymlshow the checks catch a regression:.github/scripts/gate.shpassed on 7cbb61a with a clean tree.Merge Danger
Door: two-way
A revert puts back the old compose file and README text.
Blast Radius: local
Production never reads this file. Someone who ran the repo's compose file on a host that has
edgeloses the proxy's route to the panel, andCAV_API_BASE_URL=http://7cav-api:11000stops resolving for them. No member or panel user sees a change, so the PR doesn't carryneeds-smoke.