Skip to content

Commit 4da07b8

Browse files
committed
Change deploy docker-compose file
1 parent bbacb64 commit 4da07b8

File tree

3 files changed

+31
-29
lines changed

3 files changed

+31
-29
lines changed

client/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FROM node:20.14 AS base
22

3-
# Declare build arguments from docker-compose.local.yaml
4-
ARG NODE_ENV
5-
ARG BACKEND_DEV_HOST
3+
# Declare build arguments from docker-compose.local.yaml. Set default arguments
4+
ARG NODE_ENV=development
5+
ARG BACKEND_DEV_HOST=http://localhost:80/api
66

77
RUN mkdir -p /home/vite/app
88
RUN npm config set cache /tmp --global

docker-compose-deploy.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

docker-compose.deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: "3.9"
2+
services:
3+
frontend:
4+
container_name: nginx-frontend-app
5+
image: dssaregistry.azurecr.io/mymaestro:frontlatest
6+
restart: always
7+
build:
8+
context: .
9+
dockerfile: ./client/Dockerfile
10+
args:
11+
NODE_ENV: production
12+
env_file:
13+
- .env
14+
ports:
15+
- 80:80
16+
- 443:443
17+
18+
backend:
19+
container_name: node-app
20+
image: dssaregistry.azurecr.io/mymaestro:backlatest
21+
restart: always
22+
build:
23+
context: .
24+
dockerfile: ./server/Dockerfile
25+
env_file:
26+
- .env
27+
environment:
28+
- NODE_ENV=production

0 commit comments

Comments
 (0)