From c3707cc1ebd97a44c0a6e1019e044938d623c815 Mon Sep 17 00:00:00 2001 From: Vicente Falco Date: Wed, 30 Aug 2017 09:58:10 +0200 Subject: [PATCH] Docker Services --- services/auth/Dockerfile | 4 +++- services/client/Dockerfile | 4 +++- services/mailer/Dockerfile | 6 ++++-- services/production/Dockerfile | 4 +++- services/salix/Dockerfile | 4 +++- 5 files changed, 16 insertions(+), 6 deletions(-) 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