Files
dsantillan 1a48efdbcc
Tests / test (pull_request) Canceled after 0s
Add deploy/compose-build-at-deploy.yml for hosts that build at deploy time
The instance at gym.dploy.lol runs a five-service stack that clones the source
and builds it on every deploy, rather than pulling the images
docker-compose.yml names. That shape has three requirements nothing in the
repository stated, and getting any of them wrong costs a deploy:

- web-build has to copy the whole repository and build from frontend/. The
  frontend imports the Coach's core from ../../../api/coach/core/, so a build
  stage holding only frontend/ fails with nine UNRESOLVED_IMPORT errors — the
  reason web/Dockerfile copies api/coach/core/ into its build stage.
- The volume names have to be pinned with `name:`. Unpinned, a restyled stack
  silently creates empty volumes and the profiles and training history look
  gone.
- nginx needs client_max_body_size. Its default request limit is 1 MB while the
  app PUTs the whole profile to /api/data and the API accepts 5 MB — the sync
  starts failing with a 413 the UI cannot explain once a history grows past 1 MB.
  web/nginx.conf.template already sets 5m; this matches it.

The file is the shape that instance runs, with its volume names filled in.
2026-09-21 14:38:38 -04:00
..