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:
parent
6f1924065b
commit
cc7235e79c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user