Adding new deploy configuration

This commit is contained in:
Matias committed 2019-04-28 10:04:56 -03:00
1 parent bc0aac4985
commit aa36707341
5 files changed
+117 -1

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
FROM mhart/alpine-node:12
# Directory where the service will be installed
ARG API_DIR=/usr/src/masterappapi
# Prepare required directories
RUN mkdir -p ${API_DIR}
# Use app directory as current workdir
WORKDIR ${API_DIR}
# Copy package.json to workdir
COPY package*.json ${API_DIR}/
# Install dependencies
RUN npm install --production
# Copy application code
COPY . ${API_DIR}
# Expose Port
EXPOSE $PORT
+28
View File
@@ -0,0 +1,28 @@
version: '3'
services:
mongo:
image: mongo:4.0.9
restart: always
volumes:
- data-volume:/data/db
# ports:
# - "27017:27017"
networks:
- superalgos_net
mongo-express:
image: mongo-express
restart: always
ports:
- "8081:8081"
networks:
- superalgos_net
depends_on:
- mongo
networks:
superalgos_net:
volumes:
data-volume: