diff --git a/services/auth/Dockerfile b/services/auth/Dockerfile index c7f1590cc1..ecac7b8dce 100644 --- a/services/auth/Dockerfile +++ b/services/auth/Dockerfile @@ -6,6 +6,8 @@ WORKDIR /app RUN npm install -CMD ["npm", "start"] +RUN npm -g install pm2 + +CMD ["pm2-docker", "."] EXPOSE 3000 diff --git a/services/client/Dockerfile b/services/client/Dockerfile index 865de516e2..9f923ab123 100644 --- a/services/client/Dockerfile +++ b/services/client/Dockerfile @@ -6,6 +6,8 @@ WORKDIR /app RUN npm install -CMD ["npm", "start"] +RUN npm -g install pm2 + +CMD ["pm2-docker", "."] EXPOSE 3002 \ No newline at end of file diff --git a/services/mailer/Dockerfile b/services/mailer/Dockerfile index 1f9574a645..dd9e2d2008 100644 --- a/services/mailer/Dockerfile +++ b/services/mailer/Dockerfile @@ -3,9 +3,11 @@ FROM node:6.9.1 COPY . /app WORKDIR /app - + RUN npm install -CMD ["npm", "start"] +RUN npm -g install pm2 + +CMD ["pm2-docker", "."] EXPOSE 3003 diff --git a/services/production/Dockerfile b/services/production/Dockerfile index 7c672f9a69..a15a314f9b 100644 --- a/services/production/Dockerfile +++ b/services/production/Dockerfile @@ -6,6 +6,8 @@ WORKDIR /app RUN npm install -CMD ["npm", "start"] +RUN npm -g install pm2 + +CMD ["pm2-docker", "."] EXPOSE 3004 diff --git a/services/salix/Dockerfile b/services/salix/Dockerfile index 9addf39cb5..2b97fd5997 100644 --- a/services/salix/Dockerfile +++ b/services/salix/Dockerfile @@ -6,6 +6,8 @@ WORKDIR /app RUN npm install -CMD ["npm", "start"] +RUN npm -g install pm2 + +CMD ["pm2-docker", "."] EXPOSE 3001 \ No newline at end of file