mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-07 13:34:53 +03:00
Introduce node service to production setup
This commit is contained in:
parent
d36ff72c0f
commit
70d5a5b18b
11
{{cookiecutter.project_slug}}/compose/node/Dockerfile
Normal file
11
{{cookiecutter.project_slug}}/compose/node/Dockerfile
Normal 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
|
|
@ -19,6 +19,7 @@ services:
|
|||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
- node
|
||||
command: /gunicorn.sh
|
||||
env_file: .env
|
||||
|
||||
|
@ -76,3 +77,9 @@ services:
|
|||
- redis
|
||||
command: celery -A {{cookiecutter.project_slug}}.taskapp beat -l INFO
|
||||
{% endif %}
|
||||
|
||||
node:
|
||||
extends:
|
||||
service: node
|
||||
file: ./dev.yml
|
||||
ports: {}
|
||||
|
|
Loading…
Reference in New Issue
Block a user