mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Creating a separate volume for .nuxt/ where nuxt stores its transpiled files ensures that both local and docker setup are isolated from each other. E.g. on Linux I see these annoying owner permission errors, because the user in the docker environment is called `root` not my user on my host system `robert`. This might be interesting for @mattwr18 too
19 lines
356 B
YAML
19 lines
356 B
YAML
version: '3.7'
|
|
|
|
services:
|
|
webapp:
|
|
build:
|
|
context: .
|
|
target: build-and-test
|
|
volumes:
|
|
- .:/nitro-web
|
|
- node_modules:/nitro-web/node_modules
|
|
- node_modules_styleguide:/nitro-web/styleguide/node_modules
|
|
- nuxt:/nitro-web/.nuxt
|
|
command: yarn run dev
|
|
|
|
volumes:
|
|
node_modules:
|
|
node_modules_styleguide:
|
|
nuxt:
|