mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
gps
This commit is contained in:
@@ -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: .
|
||||
|
||||
Reference in New Issue
Block a user