Ocelot-Social/docker-compose.override.yml
Robert Schäfer 41f0a44d08 Separate .nuxt folders for docker and local setup
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
2019-02-15 13:32:57 +01:00

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: