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.
This commit is contained in:
T. Narantuya 2025-08-30 10:49:53 +09:00
parent 6f1924065b
commit cc7235e79c

View File

@ -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