# Opt-in fragment ONLY: merge into the reviewed Stage backend service definition. # Not a standalone compose file; does not enable the worker automatically. # Host files/dirs must already exist, with reviewed ownership and modes. x-prepare-worker-backend: environment: PREPARE_WORKER_ENABLED: "${PREPARE_WORKER_ENABLED:-false}" secrets: - source: prepare_worker_grants target: prepare_worker_grants mode: 0400 volumes: - type: bind source: ${PREPARE_WORKER_ARTIFACT_HOST_DIRECTORY:?review private artifact directory} target: /var/lib/canina/prepare-artifacts bind: create_host_path: false secrets: prepare_worker_grants: file: ${PREPARE_WORKER_GRANTS_FILE:?review mounted grants JSON file}