# The Car Wash REVIEW COLLECTOR — deployed on the REVIEWER's host (art-docker-station), NOT # on a booth. Its own Komodo stack ("wash-collector" in komodo/resources.toml) points at this # file alone, so nothing here reaches a booth and nothing of the booth stack reaches this # host. See wiki/concepts/vision-review-outbox.md. # # Reachability: booths POST to /ingest over the Netbird overlay only. Bind the published # port to the host's OVERLAY address (COLLECTOR_BIND), never 0.0.0.0 on a host that also # has a public interface. The Netbird policy should allow booths → this host:8090 and # nothing else on it. services: collector: image: ${REGISTRY:-git.infra.msai.al/mca/parking_solution}/parking-collector:${TAG:-dev} restart: unless-stopped ports: - "${COLLECTOR_BIND:-127.0.0.1}:8090:8090" environment: # ":" pairs — one per booth, the booth's CARWASH_REVIEW_TOKEN under its # pseudonymous CARWASH_REVIEW_BOOTH_ID. A Komodo secret reference in the stack env. COLLECTOR_BOOTH_TOKENS: ${COLLECTOR_BOOTH_TOKENS:?set COLLECTOR_BOOTH_TOKENS in the stack env} # The single reviewer login (HTTP Basic over the overlay). COLLECTOR_REVIEWER_USER: ${COLLECTOR_REVIEWER_USER:-reviewer} COLLECTOR_REVIEWER_PASS: ${COLLECTOR_REVIEWER_PASS:?set COLLECTOR_REVIEWER_PASS in the stack env} LOG_LEVEL: ${LOG_LEVEL:-info} volumes: - collector-data:/data # Phase B trainer — a one-off job on this host's GPU, NOT a service (profile "train": it # only runs when asked: `docker compose --profile train run --rm trainer`). Reads the # collector's export + crops straight off the same volume; writes the ONNX classifier the # vision image then bakes in. The image/script are the next increment; this is the seam. # trainer: # image: ${REGISTRY:-git.infra.msai.al/mca/parking_solution}/parking-trainer:${TAG:-dev} # profiles: ["train"] # deploy: # resources: # reservations: # devices: # - driver: nvidia # count: all # capabilities: [gpu] # volumes: # - collector-data:/data:ro # - ./models:/out volumes: collector-data: