Repository navigation
fix(compose): make the shipped compose deploy out of the box - #6
Merged
Merged
Conversation
Three things kept `docker compose up -d` from being a working deploy: - `build: .` compiled the full multi-stage image (Node builds the UI, Go embeds it) instead of pulling the published one — minutes for what should take seconds. Default to ghcr.io and leave the build line commented for development. - `deploy.resources.limits.memory` is ignored by `docker compose` outside a Swarm stack, so the memory limit never reached the container. `mem_limit` does apply; verified as HostConfig.Memory=1610612736. - No healthcheck. /api/health stays reachable without credentials even when FT_AUTH_PASSWORD is set, so it works on a locked-down instance too. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LcSmC4nXzcn2UAofR7JCgZ
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.
Follow-up to #5. The
docker-compose.ymlin the repo was the development one, sodocker compose up -dwas neither fast nor correctly limited.build: .— full multi-stage build, minutesimage: ghcr.io/jodacame/fluxtorrent:latest, with# build: .left for developmentdeploy.resources.limits.memory— ignored bydocker composeoutside Swarmmem_limit: 1536m, which actually applieswgeton/api/health(busybox is already in the alpine image)The memory limit mattering is not cosmetic: #5 fixed a container being OOM-killed mid-playback, and the limit that was supposed to bound it was never being applied by
docker compose.Verified by deploying the file as-is:
/api/healthis inisAuthOpenPath, so the healthcheck keeps working whenFT_AUTH_PASSWORDis set. Swarm users get a comment pointing back atdeploy.resources.🤖 Generated with Claude Code
https://claude.ai/code/session_01LcSmC4nXzcn2UAofR7JCgZ