From 017c1f70700cda2905b6bebd169c1ec9f4d1ec56 Mon Sep 17 00:00:00 2001 From: Esper Kuijs Date: Fri, 24 Jan 2020 12:14:15 +0000 Subject: [PATCH] Initial working frontend service --- docker-compose.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 87d8546..8f325c5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,7 @@ services: PYTHON_PATH: /code/wagtail:/code/bakerydemo depends_on: - db + - frontend db: image: postgres:9.6.2-alpine environment: @@ -23,4 +24,21 @@ services: POSTGRES_PASSWORD: changeme restart: always expose: - - "5432" \ No newline at end of file + - "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