From cc7235e79c067feae98329d2e817e49a9ffe4e27 Mon Sep 17 00:00:00 2001 From: "T. Narantuya" Date: Sat, 30 Aug 2025 10:49:53 +0900 Subject: [PATCH] Refactor Docker Compose configuration to use pre-built images for services - Updated the frontend and backend services to use pre-built images instead of build contexts. - Set pull_policy to never to prevent automatic image pulls, ensuring consistent deployments. --- compose-plesk.yaml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/compose-plesk.yaml b/compose-plesk.yaml index 26322bf2..143aef38 100644 --- a/compose-plesk.yaml +++ b/compose-plesk.yaml @@ -4,12 +4,10 @@ services: frontend: - build: - context: /var/www/vhosts/asolutions.jp/httpdocs - dockerfile: apps/portal/Dockerfile - target: production + image: portal-frontend container_name: portal-frontend network_mode: host + pull_policy: never environment: - NODE_ENV=production - PORT=3000 @@ -26,12 +24,10 @@ services: retries: 3 backend: - build: - context: /var/www/vhosts/asolutions.jp/httpdocs - dockerfile: apps/bff/Dockerfile - target: production + image: portal-backend container_name: portal-backend network_mode: host + pull_policy: never environment: - NODE_ENV=production - PORT=4000