kopia lustrzana https://github.com/wagtail/docker-wagtail-develop
Merge branch 'add-frontend-service'
commit
9df55fcc9a
|
@ -25,6 +25,7 @@ services:
|
||||||
PYTHONPATH: /code/wagtail:/code/bakerydemo:$PYTHONPATH
|
PYTHONPATH: /code/wagtail:/code/bakerydemo:$PYTHONPATH
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
- frontend
|
||||||
db:
|
db:
|
||||||
image: postgres:9.6.2-alpine
|
image: postgres:9.6.2-alpine
|
||||||
environment:
|
environment:
|
||||||
|
@ -34,3 +35,20 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
expose:
|
expose:
|
||||||
- "5432"
|
- "5432"
|
||||||
|
frontend:
|
||||||
|
image: node:9-slim
|
||||||
|
working_dir: /code/wagtail
|
||||||
|
volumes:
|
||||||
|
- ./wagtail:/code/wagtail:rw
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
npm i npm@latest -g
|
||||||
|
npm install
|
||||||
|
npm install npm-run-all
|
||||||
|
npm install gulp
|
||||||
|
npm install webpack
|
||||||
|
node node_modules/node-sass/scripts/install.js
|
||||||
|
npm rebuild node-sass
|
||||||
|
npm run start
|
||||||
|
|
Ładowanie…
Reference in New Issue