mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
85 lines
2.2 KiB
YAML
85 lines
2.2 KiB
YAML
# EDR Platform — application containers only (no Postgres).
|
|
# Requires a local .npmrc with GitHub Packages auth for @tria-plc (freight API + freight web).
|
|
# Copy apps/*/env.example to .env and set real values before `docker compose up`.
|
|
#
|
|
# Build: DOCKER_BUILDKIT=1 docker compose build
|
|
# Run: docker compose up -d
|
|
|
|
services:
|
|
freight-api:
|
|
build:
|
|
context: .
|
|
dockerfile: apps/edr-freight-api/Dockerfile
|
|
secrets:
|
|
- npmrc
|
|
ports:
|
|
- "3001:3001"
|
|
environment:
|
|
PORT: "3001"
|
|
env_file:
|
|
- apps/edr-freight-api/.env
|
|
|
|
passenger-api:
|
|
build:
|
|
context: .
|
|
dockerfile: apps/edr-passenger-api/Dockerfile
|
|
ports:
|
|
- "4000:4000"
|
|
environment:
|
|
PORT: "4000"
|
|
env_file:
|
|
- apps/edr-passenger-api/.env
|
|
|
|
freight-portal:
|
|
build:
|
|
context: .
|
|
dockerfile: infrastructure/docker/Dockerfile.web
|
|
args:
|
|
TURBO_FILTER: "@edr/freight-portal"
|
|
APP_PATH: apps/edr-freight-web/portal
|
|
# Browser-reachable URL; override for production deployments
|
|
VITE_API_URL: ${FREIGHT_VITE_API_URL:-http://localhost:3001/api}
|
|
secrets:
|
|
- npmrc
|
|
ports:
|
|
- "5173:80"
|
|
|
|
freight-backoffice:
|
|
build:
|
|
context: .
|
|
dockerfile: infrastructure/docker/Dockerfile.web
|
|
args:
|
|
TURBO_FILTER: "@edr/freight-backoffice"
|
|
APP_PATH: apps/edr-freight-web/backoffice
|
|
VITE_API_URL: ${FREIGHT_VITE_API_URL:-http://localhost:3001/api}
|
|
secrets:
|
|
- npmrc
|
|
ports:
|
|
- "5183:80"
|
|
|
|
passenger-portal:
|
|
build:
|
|
context: .
|
|
dockerfile: infrastructure/docker/Dockerfile.web
|
|
args:
|
|
TURBO_FILTER: "@edr/passenger-portal"
|
|
APP_PATH: apps/edr-passenger-web/portal
|
|
VITE_API_URL: ${PASSENGER_VITE_API_URL:-http://localhost:4000}
|
|
ports:
|
|
- "5174:80"
|
|
|
|
passenger-backoffice:
|
|
build:
|
|
context: .
|
|
dockerfile: infrastructure/docker/Dockerfile.web
|
|
args:
|
|
TURBO_FILTER: "@edr/passenger-backoffice"
|
|
APP_PATH: apps/edr-passenger-web/backoffice
|
|
VITE_API_URL: ${PASSENGER_VITE_API_URL:-http://localhost:4000}
|
|
ports:
|
|
- "5184:80"
|
|
|
|
secrets:
|
|
npmrc:
|
|
file: .npmrc
|