File size: 1,608 Bytes
f3a79d5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
774321b
f3a79d5
 
318fb2d
f3a79d5
 
 
 
 
 
 
 
 
 
 
 
 
 
b9379f0
f3a79d5
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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