File size: 717 Bytes
d325ede
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
services:
  backend:
    build:
      context: .
      dockerfile: Dockerfile.backend
    ports:
      - "8000:8000"
    volumes:
      - ./uploads:/app/uploads
      - ./outputs:/app/outputs
      - colmap_data:/tmp/colmap_jobs
    environment:
      - COLMAP_PATH=/usr/bin/colmap
      - COLMAP_USE_GPU=0
      - SIMULATION_MODE=false
      - UPLOAD_DIR=/app/uploads
      - OUTPUT_DIR=/app/outputs
      - JOB_TIMEOUT_SECONDS=300
    restart: unless-stopped

  frontend:
    build:
      context: .
      dockerfile: Dockerfile.frontend
    ports:
      - "5173:5173"
    environment:
      - VITE_API_BASE=http://localhost:8000
    depends_on:
      - backend
    restart: unless-stopped

volumes:
  colmap_data: