Change restart policy and remove npmrc secrets

Updated restart policy for multiple services to 'always' and removed npmrc secrets.
This commit is contained in:
Yonas Tewabe
2026-07-27 13:18:28 +03:00
committed by GitHub
parent 1ae516c5f3
commit 4e7b7d9f4d

View File

@@ -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,7 +28,7 @@ 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:
@@ -43,7 +40,7 @@ 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:
@@ -58,10 +55,9 @@ 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:
@@ -76,10 +72,9 @@ 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:
@@ -89,13 +84,11 @@ 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:
@@ -105,13 +98,11 @@ 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:
@@ -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