Fixed live reload of Nuxt for docker-compose

- If code was changed by the developer in backend and webapp live reload was not executed.
This commit is contained in:
Wolfgang Huß 2021-01-18 15:53:08 +01:00
parent 2ffab3a0a4
commit 2495f4fa72
2 changed files with 5 additions and 5 deletions

View File

@ -6,21 +6,18 @@ services:
build:
context: webapp
target: build-and-test
volumes:
- ./webapp:/develop-webapp
environment:
- NUXT_BUILD=/tmp/nuxt # avoid file permission issues when `rm -rf .nuxt/`
- PUBLIC_REGISTRATION=true
command: yarn run dev
volumes:
- webapp_node_modules:/nitro-web/node_modules
- ./webapp:/develop-webapp
- webapp_node_modules:/develop-webapp/node_modules
backend:
image: ocelotsocialnetwork/develop-backend:build-and-test
build:
context: backend
target: build-and-test
volumes:
- ./backend:/develop-backend
command: yarn run dev
environment:
- SMTP_HOST=mailserver
@ -29,6 +26,7 @@ services:
- "DEBUG=${DEBUG}"
- PUBLIC_REGISTRATION=false
volumes:
- ./backend:/develop-backend
- backend_node_modules:/develop-backend/node_modules
- uploads:/develop-backend/public/uploads
neo4j:

View File

@ -16,6 +16,7 @@ services:
depends_on:
- backend
volumes:
- ./webapp:/develop-webapp
- webapp_node_modules:/develop-webapp/node_modules
environment:
- HOST=0.0.0.0
@ -35,6 +36,7 @@ services:
ports:
- 4000:4000
volumes:
- ./backend:/develop-backend
- backend_node_modules:/develop-backend/node_modules
- uploads:/develop-backend/public/uploads
environment: