feat: add GPS tracking with Traccar integration
- Add GPS module with Traccar client service for device management - Add driver enrollment flow with QR code generation - Add real-time location tracking on driver profiles - Add GPS settings configuration in admin tools - Add Auth0 OpenID Connect setup script for Traccar - Add deployment configs for production server - Update nginx configs for SSL on GPS port 5055 - Add timezone setting support - Various UI improvements and bug fixes Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
# PostgreSQL Database
|
||||
postgres:
|
||||
@@ -10,7 +8,7 @@ services:
|
||||
POSTGRES_PASSWORD: changeme
|
||||
POSTGRES_DB: vip_coordinator
|
||||
ports:
|
||||
- "5433:5432" # Using 5433 on host to avoid conflict
|
||||
- "5433:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
@@ -20,12 +18,12 @@ services:
|
||||
retries: 5
|
||||
restart: unless-stopped
|
||||
|
||||
# Redis (Optional - for caching/sessions)
|
||||
# Redis (for caching/sessions)
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
container_name: vip-redis
|
||||
ports:
|
||||
- "6380:6379" # Using 6380 on host to avoid conflicts
|
||||
- "6380:6379"
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
healthcheck:
|
||||
@@ -45,6 +43,73 @@ services:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- signal_data:/home/.local/share/signal-cli
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/v1/about"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
restart: unless-stopped
|
||||
|
||||
# Traccar GPS Tracking Server
|
||||
traccar:
|
||||
image: traccar/traccar:latest
|
||||
container_name: vip-traccar
|
||||
ports:
|
||||
- "8082:8082" # Web UI & API
|
||||
- "5055:5055" # GPS device port (OsmAnd protocol)
|
||||
volumes:
|
||||
- traccar_data:/opt/traccar/data
|
||||
- traccar_logs:/opt/traccar/logs
|
||||
environment:
|
||||
- JAVA_OPTS=-Xms256m -Xmx512m
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8082/api/server"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
restart: unless-stopped
|
||||
|
||||
# Backend API
|
||||
backend:
|
||||
image: t72chevy/vip-coordinator-backend:latest
|
||||
container_name: vip-backend
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 3000
|
||||
DATABASE_URL: postgresql://postgres:changeme@postgres:5432/vip_coordinator
|
||||
REDIS_URL: redis://redis:6379
|
||||
SIGNAL_API_URL: http://signal-api:8080
|
||||
TRACCAR_API_URL: http://traccar:8082
|
||||
TRACCAR_DEVICE_PORT: 5055
|
||||
AUTH0_DOMAIN: ${AUTH0_DOMAIN}
|
||||
AUTH0_AUDIENCE: ${AUTH0_AUDIENCE}
|
||||
AUTH0_ISSUER: ${AUTH0_ISSUER}
|
||||
FRONTEND_URL: http://localhost:5173
|
||||
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY}
|
||||
ports:
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3000/v1/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
restart: unless-stopped
|
||||
|
||||
# Frontend
|
||||
frontend:
|
||||
image: t72chevy/vip-coordinator-frontend:latest
|
||||
container_name: vip-frontend
|
||||
ports:
|
||||
- "5173:80"
|
||||
depends_on:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
@@ -54,3 +119,7 @@ volumes:
|
||||
name: vip_redis_data
|
||||
signal_data:
|
||||
name: vip_signal_data
|
||||
traccar_data:
|
||||
name: vip_traccar_data
|
||||
traccar_logs:
|
||||
name: vip_traccar_logs
|
||||
|
||||
Reference in New Issue
Block a user