This commit is contained in:
natib21
2026-07-10 15:23:49 +00:00
parent 4836f0e63b
commit 15fc21a6c9
18 changed files with 709 additions and 24 deletions

View File

@@ -16,12 +16,33 @@ services:
- npmrc
ports:
- "${FREIGHT_API_PORT:-3001}:${FREIGHT_API_PORT:-3001}"
# GT06 GPS tracker TCP ingestion (raw TCP — must be reachable by tracker SIMs).
- "${GT06_TCP_PORT:-5023}:${GT06_TCP_PORT:-5023}"
env_file:
- apps/edr-freight-api/.env
extra_hosts:
- "paymentcallback.triaplc.com:10.18.7.179"
# Standalone GT06 GPS tracker ingester (@edr/gps-tracker). Raw TCP only, no
# HTTP. Writes freight.gps_devices / freight.gps_positions in the shared
# freight DB; the /gps REST API stays in freight-api. Never runs migrations.
gps-tracker:
build:
context: .
dockerfile: apps/edr-gps-tracker/Dockerfile
secrets:
- npmrc
depends_on:
- freight-api
ports:
# Raw TCP — reachable by tracker SIMs. Not HTTP; no L7 proxy can host-route it.
- "${GT06_TCP_PORT:-5023}:5023"
environment:
GT06_TCP_PORT: "5023"
GT06_TCP_HOST: "0.0.0.0"
env_file:
# Reuses the freight DB credentials (DB_HOST/DB_PORT/DB_USER/DB_PASSWORD/DB_NAME).
- apps/edr-freight-api/.env
restart: unless-stopped
passenger-api:
build:
context: .