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:
|
services:
|
||||||
frontend:
|
frontend:
|
||||||
build:
|
image: portal-frontend
|
||||||
context: /var/www/vhosts/asolutions.jp/httpdocs
|
|
||||||
dockerfile: apps/portal/Dockerfile
|
|
||||||
target: production
|
|
||||||
container_name: portal-frontend
|
container_name: portal-frontend
|
||||||
network_mode: host
|
network_mode: host
|
||||||
|
pull_policy: never
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- PORT=3000
|
- PORT=3000
|
||||||
@ -26,12 +24,10 @@ services:
|
|||||||
retries: 3
|
retries: 3
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
build:
|
image: portal-backend
|
||||||
context: /var/www/vhosts/asolutions.jp/httpdocs
|
|
||||||
dockerfile: apps/bff/Dockerfile
|
|
||||||
target: production
|
|
||||||
container_name: portal-backend
|
container_name: portal-backend
|
||||||
network_mode: host
|
network_mode: host
|
||||||
|
pull_policy: never
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- PORT=4000
|
- PORT=4000
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user