Refactor: enhance API response schemas for pagination; update environment variables for Supabase and Vision API; improve Vite configuration for proxy routing

This commit is contained in:
salirezav
2025-08-12 13:48:17 -04:00
parent 7a939920fa
commit 62dd0d162b
9 changed files with 57 additions and 35 deletions

View File

@@ -1,5 +1,3 @@
version: "3.9"
services:
api:
build:
@@ -8,11 +6,14 @@ services:
working_dir: /app
volumes:
- ./camera-management-api:/app
- ./camera-management-api/storage:/storage
- /storage:/storage
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
- PYTHONUNBUFFERED=1
- LD_LIBRARY_PATH=/usr/local/lib:/lib:/usr/lib
- PYTHONPATH=/app:/app/camera_sdk
- TZ=America/New_York
command: >
sh -lc "
apt-get update && apt-get install -y libusb-1.0-0-dev;
@@ -39,8 +40,7 @@ services:
# Start the application
python main.py --config config.compose.json
"
ports:
- "8000:8000"
network_mode: host
web:
image: node:20-alpine
@@ -49,13 +49,15 @@ services:
- ./management-dashboard-web-app:/app
environment:
- CHOKIDAR_USEPOLLING=true
- VITE_SUPABASE_URL=${VITE_SUPABASE_URL}
- VITE_SUPABASE_ANON_KEY=${VITE_SUPABASE_ANON_KEY}
- TZ=America/New_York
command: >
sh -lc "
npm ci;
npm run dev -- --host 0.0.0.0 --port 8080
"
# Ensure the web container can resolve host.docker.internal on Linux
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "8080:8080"