compose: keep traefik's file provider through a deploy - #105
Merged
Merged
Conversation
The deploy job scp's this file over /home/ubuntu/clayde/docker-compose.yml before running `docker compose up -d`, so anything the VM copy has and this one lacks is silently dropped on every merge to main. The file provider and its /dynamic mount were in that category: they serve the hand-written routes for the /board and /walk backends running on the host, which returned 404 after today's deploy until the VM copy was patched back by hand. Second occurrence today.
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.
The bug
The
deployjob scp's this repo'sdocker-compose.ymlover/home/ubuntu/clayde/docker-compose.ymland then runsdocker compose up -d. Anything the VM copy carries and this one does not is therefore dropped on every merge to main.Two traefik settings were in that category:
--providers.file.directory=/dynamicand--providers.file.watch=true./traefik-dynamic:/dynamic:romountThey serve
~/clayde/traefik-dynamic/board.ymlandwalk.yml, the hand-written routes for the/boardand/walkbackends that run on the host rather than as containers here.Evidence
After today's deploy of #104,
https://clayde.net/boardandhttps://clayde.net/walkboth returned 404 — traefik's answer when no router matches, as opposed to the 502 a dead backend would give. The VM copy had to be patched back by hand. This was the second occurrence today: the 11:25 UTC deploy did the same thing, which is whatdocker-compose.yml.bak-2026-09-21-1138on the VM records.The fix
Put both settings in the deployed file, so the scp carries them instead of removing them.