mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Change restart policy and remove npmrc secrets
Updated restart policy for multiple services to 'always' and removed npmrc secrets.
This commit is contained in:
@@ -9,21 +9,18 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: apps/edr-freight-api/Dockerfile
|
dockerfile: apps/edr-freight-api/Dockerfile
|
||||||
secrets:
|
|
||||||
- npmrc
|
|
||||||
ports:
|
ports:
|
||||||
- "${FREIGHT_API_PORT:-3001}:${FREIGHT_API_PORT:-3001}"
|
- "${FREIGHT_API_PORT:-3001}:${FREIGHT_API_PORT:-3001}"
|
||||||
env_file:
|
env_file:
|
||||||
- apps/edr-freight-api/.env
|
- apps/edr-freight-api/.env
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "paymentcallback.triaplc.com:10.18.7.179"
|
- "paymentcallback.triaplc.com:10.18.7.179"
|
||||||
|
restart: always
|
||||||
|
|
||||||
gps-tracker:
|
gps-tracker:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: apps/edr-gps-tracker/Dockerfile
|
dockerfile: apps/edr-gps-tracker/Dockerfile
|
||||||
secrets:
|
|
||||||
- npmrc
|
|
||||||
ports:
|
ports:
|
||||||
- "${GT06_TCP_PORT:-5023}:5023"
|
- "${GT06_TCP_PORT:-5023}:5023"
|
||||||
environment:
|
environment:
|
||||||
@@ -31,8 +28,8 @@ services:
|
|||||||
GT06_TCP_HOST: "0.0.0.0"
|
GT06_TCP_HOST: "0.0.0.0"
|
||||||
env_file:
|
env_file:
|
||||||
- apps/edr-gps-tracker/.env
|
- apps/edr-gps-tracker/.env
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
|
|
||||||
passenger-api:
|
passenger-api:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -43,8 +40,8 @@ services:
|
|||||||
- apps/edr-passenger-api/.env
|
- apps/edr-passenger-api/.env
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "paymentcallback.triaplc.com:10.18.7.179"
|
- "paymentcallback.triaplc.com:10.18.7.179"
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
|
|
||||||
freight-portal:
|
freight-portal:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -58,11 +55,10 @@ services:
|
|||||||
VITE_GOOGLE_MAPS_API_KEY: ${VITE_GOOGLE_MAPS_API_KEY:-}
|
VITE_GOOGLE_MAPS_API_KEY: ${VITE_GOOGLE_MAPS_API_KEY:-}
|
||||||
VITE_POSTHOG_KEY: ${VITE_POSTHOG_KEY:-}
|
VITE_POSTHOG_KEY: ${VITE_POSTHOG_KEY:-}
|
||||||
VITE_POSTHOG_HOST: ${VITE_POSTHOG_HOST:-}
|
VITE_POSTHOG_HOST: ${VITE_POSTHOG_HOST:-}
|
||||||
secrets:
|
|
||||||
- npmrc
|
|
||||||
ports:
|
ports:
|
||||||
- "${FREIGHT_PORTAL_PORT:-5173}:80"
|
- "${FREIGHT_PORTAL_PORT:-5173}:80"
|
||||||
|
restart: always
|
||||||
|
|
||||||
freight-backoffice:
|
freight-backoffice:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -76,11 +72,10 @@ services:
|
|||||||
VITE_GOOGLE_MAPS_API_KEY: ${VITE_GOOGLE_MAPS_API_KEY:-}
|
VITE_GOOGLE_MAPS_API_KEY: ${VITE_GOOGLE_MAPS_API_KEY:-}
|
||||||
VITE_POSTHOG_KEY: ${VITE_POSTHOG_KEY:-}
|
VITE_POSTHOG_KEY: ${VITE_POSTHOG_KEY:-}
|
||||||
VITE_POSTHOG_HOST: ${VITE_POSTHOG_HOST:-}
|
VITE_POSTHOG_HOST: ${VITE_POSTHOG_HOST:-}
|
||||||
secrets:
|
|
||||||
- npmrc
|
|
||||||
ports:
|
ports:
|
||||||
- "${FREIGHT_BACKOFFICE_PORT:-5183}:80"
|
- "${FREIGHT_BACKOFFICE_PORT:-5183}:80"
|
||||||
|
restart: always
|
||||||
|
|
||||||
passenger-portal:
|
passenger-portal:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -89,14 +84,12 @@ services:
|
|||||||
APP_PACKAGE: "@edr/passenger-portal"
|
APP_PACKAGE: "@edr/passenger-portal"
|
||||||
APP_PATH: apps/edr-passenger-web/portal
|
APP_PATH: apps/edr-passenger-web/portal
|
||||||
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-}
|
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-}
|
||||||
secrets:
|
|
||||||
- npmrc
|
|
||||||
ports:
|
ports:
|
||||||
- "${PASSENGER_PORTAL_PORT:-5174}:${PASSENGER_PORTAL_PORT:-5174}"
|
- "${PASSENGER_PORTAL_PORT:-5174}:${PASSENGER_PORTAL_PORT:-5174}"
|
||||||
env_file:
|
env_file:
|
||||||
- apps/edr-passenger-web/portal/.env
|
- apps/edr-passenger-web/portal/.env
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
|
|
||||||
passenger-backoffice:
|
passenger-backoffice:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -105,14 +98,12 @@ services:
|
|||||||
APP_PACKAGE: "@edr/passenger-backoffice"
|
APP_PACKAGE: "@edr/passenger-backoffice"
|
||||||
APP_PATH: apps/edr-passenger-web/backoffice
|
APP_PATH: apps/edr-passenger-web/backoffice
|
||||||
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-}
|
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-}
|
||||||
secrets:
|
|
||||||
- npmrc
|
|
||||||
ports:
|
ports:
|
||||||
- "${PASSENGER_BACKOFFICE_PORT:-5184}:${PASSENGER_BACKOFFICE_PORT:-5184}"
|
- "${PASSENGER_BACKOFFICE_PORT:-5184}:${PASSENGER_BACKOFFICE_PORT:-5184}"
|
||||||
env_file:
|
env_file:
|
||||||
- apps/edr-passenger-web/backoffice/.env
|
- apps/edr-passenger-web/backoffice/.env
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
|
|
||||||
payment-api:
|
payment-api:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -120,12 +111,8 @@ services:
|
|||||||
args:
|
args:
|
||||||
APP_PACKAGE: "@edr/payment-api"
|
APP_PACKAGE: "@edr/payment-api"
|
||||||
APP_PATH: apps/edr-payment-api
|
APP_PATH: apps/edr-payment-api
|
||||||
secrets:
|
|
||||||
- npmrc
|
|
||||||
ports:
|
ports:
|
||||||
- "${PAYMENT_API_PORT:-3008}:${PAYMENT_API_PORT:-3008}"
|
- "${PAYMENT_API_PORT:-3008}:${PAYMENT_API_PORT:-3008}"
|
||||||
env_file:
|
env_file:
|
||||||
- apps/edr-payment-api/.env
|
- apps/edr-payment-api/.env
|
||||||
secrets:
|
restart: always
|
||||||
npmrc:
|
|
||||||
file: .npmrc
|
|
||||||
|
|||||||
Reference in New Issue
Block a user