Skip to content

Commit

Permalink
Merge branch 'dev' into 649_script_single_endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
smalho01 authored Sep 25, 2024
2 parents f2ffa3d + 794fd35 commit 1a74ed0
Show file tree
Hide file tree
Showing 7 changed files with 252 additions and 206 deletions.
11 changes: 3 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
FROM node:14-alpine
ENV NODE_ENV production

WORKDIR /home/node/app
COPY --chown=node:node . .
RUN npm install -g typescript

WORKDIR /home/node/app/backend
RUN npm install
RUN npm link typescript

WORKDIR /home/node/app/frontend
RUN npm install
RUN npm link typescript

WORKDIR /home/node/app

# RUN npm install pm2 -g

EXPOSE 5050
EXPOSE 5051

CMD ./dockerRunnerProd.sh
HEALTHCHECK --interval=30s --start-period=15s --timeout=10m --retries=10 CMD (wget --no-verbose --tries=1 --spider http://localhost:5051/doctorOrders/api/getRx/pending && wget --no-verbose --tries=1 --spider http://localhost:5050) || exit 1

CMD ./dockerRunnerProd.sh
3 changes: 0 additions & 3 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ FROM node:14-alpine

WORKDIR /home/node/app
COPY --chown=node:node . .
RUN npm install -g typescript

WORKDIR /home/node/app/backend
RUN npm install
RUN npm link typescript

WORKDIR /home/node/app/frontend
RUN npm install
RUN npm link typescript

WORKDIR /home/node/app

Expand Down
6 changes: 3 additions & 3 deletions backend/env.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
},
"MONGO_USERNAME": {
"type": "string",
"default": "rems-admin-pims-root"
"default": "pims-user"
},

"MONGO_PASSWORD": {
"type": "string",
"default": "rems-admin-pims-password"
"default": "pims-pass"
},

"MONGO_URL": {
Expand All @@ -35,7 +35,7 @@

"AUTH_SOURCE": {
"type": "string",
"default": "admin"
"default": "pims"
},

"HTTPS_KEY_PATH": {
Expand Down
Loading

0 comments on commit 1a74ed0

Please sign in to comment.