mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
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:
parent
2ffab3a0a4
commit
2495f4fa72
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user