mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 21:08:12 +00:00
Update docker-compose.yaml
This commit is contained in:
@@ -5,9 +5,6 @@
|
|||||||
# Build: DOCKER_BUILDKIT=1 docker compose build
|
# Build: DOCKER_BUILDKIT=1 docker compose build
|
||||||
# Run: docker compose up -d
|
# Run: docker compose up -d
|
||||||
services:
|
services:
|
||||||
# Message broker for payment event delivery (payment-api -> passenger/freight).
|
|
||||||
# Management UI: http://localhost:15672 (login edr / edr_secret). vhost: payment.
|
|
||||||
# In deployed envs this is a shared/managed RabbitMQ; only PAYMENT_RABBITMQ_URL changes.
|
|
||||||
freight-api:
|
freight-api:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -21,26 +18,19 @@ services:
|
|||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "paymentcallback.triaplc.com:10.18.7.179"
|
- "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:
|
gps-tracker:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: apps/edr-gps-tracker/Dockerfile
|
dockerfile: apps/edr-gps-tracker/Dockerfile
|
||||||
secrets:
|
secrets:
|
||||||
- npmrc
|
- npmrc
|
||||||
depends_on:
|
|
||||||
- freight-api
|
|
||||||
ports:
|
ports:
|
||||||
# Raw TCP — reachable by tracker SIMs. Not HTTP; no L7 proxy can host-route it.
|
|
||||||
- "${GT06_TCP_PORT:-5023}:5023"
|
- "${GT06_TCP_PORT:-5023}:5023"
|
||||||
environment:
|
environment:
|
||||||
GT06_TCP_PORT: "5023"
|
GT06_TCP_PORT: "5023"
|
||||||
GT06_TCP_HOST: "0.0.0.0"
|
GT06_TCP_HOST: "0.0.0.0"
|
||||||
env_file:
|
env_file:
|
||||||
# Reuses the freight DB credentials (DB_HOST/DB_PORT/DB_USER/DB_PASSWORD/DB_NAME).
|
- apps/edr-gps-tracker/.env
|
||||||
- apps/edr-freight-api/.env
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
passenger-api:
|
passenger-api:
|
||||||
@@ -54,17 +44,7 @@ services:
|
|||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "paymentcallback.triaplc.com:10.18.7.179"
|
- "paymentcallback.triaplc.com:10.18.7.179"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "wget", "-qO-", "http://localhost:4000/health/ready"]
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 3
|
|
||||||
start_period: 60s
|
|
||||||
deploy:
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpus: '1.0'
|
|
||||||
memory: 1G
|
|
||||||
freight-portal:
|
freight-portal:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -80,6 +60,7 @@ services:
|
|||||||
- npmrc
|
- npmrc
|
||||||
ports:
|
ports:
|
||||||
- "${FREIGHT_PORTAL_PORT:-5173}:80"
|
- "${FREIGHT_PORTAL_PORT:-5173}:80"
|
||||||
|
|
||||||
freight-backoffice:
|
freight-backoffice:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -95,6 +76,7 @@ services:
|
|||||||
- npmrc
|
- npmrc
|
||||||
ports:
|
ports:
|
||||||
- "${FREIGHT_BACKOFFICE_PORT:-5183}:80"
|
- "${FREIGHT_BACKOFFICE_PORT:-5183}:80"
|
||||||
|
|
||||||
passenger-portal:
|
passenger-portal:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -110,17 +92,7 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- apps/edr-passenger-web/portal/.env
|
- apps/edr-passenger-web/portal/.env
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "wget", "-qO-", "http://localhost:${PASSENGER_PORTAL_PORT:-5174}/api/health"]
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 3
|
|
||||||
start_period: 60s
|
|
||||||
deploy:
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpus: '0.5'
|
|
||||||
memory: 512M
|
|
||||||
passenger-backoffice:
|
passenger-backoffice:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -136,17 +108,6 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- apps/edr-passenger-web/backoffice/.env
|
- apps/edr-passenger-web/backoffice/.env
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "wget", "-qO-", "http://localhost:${PASSENGER_BACKOFFICE_PORT:-5184}/api/health"]
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 3
|
|
||||||
start_period: 60s
|
|
||||||
deploy:
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpus: '0.5'
|
|
||||||
memory: 512M
|
|
||||||
|
|
||||||
payment-api:
|
payment-api:
|
||||||
build:
|
build:
|
||||||
|
|||||||
Reference in New Issue
Block a user