Introduce node service to production setup

This commit is contained in:
Nikita P. Shupeyko 2017-06-21 21:56:11 +03:00
parent d36ff72c0f
commit 70d5a5b18b
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,11 @@
FROM node:7.10-slim
RUN mkdir -p /app
COPY ./package.json /app
WORKDIR /app
RUN npm install && npm cache clean
ENV PATH ./node_modules/.bin/:$PATH

View File

@ -19,6 +19,7 @@ services:
depends_on: depends_on:
- postgres - postgres
- redis - redis
- node
command: /gunicorn.sh command: /gunicorn.sh
env_file: .env env_file: .env
@ -76,3 +77,9 @@ services:
- redis - redis
command: celery -A {{cookiecutter.project_slug}}.taskapp beat -l INFO command: celery -A {{cookiecutter.project_slug}}.taskapp beat -l INFO
{% endif %} {% endif %}
node:
extends:
service: node
file: ./dev.yml
ports: {}