Adding current deploy config

This commit is contained in:
Matias committed 2019-04-28 10:06:11 -03:00
1 parent 2198b7eb8c
commit 320112d8a7
2 files changed
+47

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
FROM mhart/alpine-node:8
ENV PORT=4003
RUN mkdir -p /var/www/app && \
mkdir -p /var/www/app/node_modules && \
mkdir -p /root/.kube
# Use app directory as current workdir
WORKDIR /var/www/app
ENV PATH /var/www/app/node_modules/.bin:$PATH
# Copy package.json to workdir
COPY package.json /var/www/app/package.json
# Install dependencies
RUN npm install
# Copy application code
COPY . /var/www/app
COPY ./config /root/.kube
# Expose Port
EXPOSE $PORT
+24
View File
@@ -0,0 +1,24 @@
version: '3'
services:
node:
image: aaoperationsapi-dev:v1
build:
context: .
dockerfile: ./Dockerfile
env_file: ./.env
container_name: aaoperationsapi
tty: true
stdin_open: true
volumes:
- ./:/var/www/app
- /var/www/app/node_modules
working_dir: /var/www/app
restart: always
command: npm start
expose:
- 4003
network_mode: webproxy
networks:
default:
external:
name: webproxy