Merge pull request #4145 from Ocelot-Social-Community/fix-of-docker-compose-live-reload

chore: 🍰 Quick Fix Of Live Reload By Nuxt For Docker-Compose
This commit is contained in:
Moriz Wahl 2021-01-18 16:04:02 +01:00 committed by GitHub
commit dca61c2f6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: