version: '3.8' services: # The private backend server is no longer run locally in this configuration. # The local broker will point directly to the deployed Hugging Face private space. # backend: # build: # context: ../3dgs_lod_tiler # Path to your private server code # dockerfile: Dockerfile # ports: # - "8001:8001" # Expose for direct access if needed # environment: # # The token the backend will use to validate requests from the broker # - HF_TOKEN=${HF_TOKEN} # # The path to the binary inside the container # - SPLAT_TILER_PATH=/usr/local/bin/SplatTiler # volumes: # # Persist uploaded/converted data between runs # - ../3dgs_lod_tiler/data:/app/data # The public-facing broker server broker: build: context: ./server dockerfile: Dockerfile ports: - "8000:8000" environment: # The broker now connects to the deployed private server on Hugging Face. - PRIVATE_SERVER_URL=${PRIVATE_SERVER_URL} - HF_TOKEN=${HF_TOKEN} # The React client development server client: build: context: ./client dockerfile: Dockerfile.dev ports: - "5173:5173" environment: # For the browser: use relative paths to hit the Vite proxy - VITE_API_SERVER_URL= # For the Vite proxy: target the broker using its service name - VITE_PROXY_TARGET=http://broker:8000 - VITE_GOOGLE_MAPS_API_KEY=${VITE_GOOGLE_MAPS_API_KEY} volumes: # Mount source code for hot-reloading - ./client/src:/app/src depends_on: - broker