]> git.openstreetmap.org Git - rails.git/blobdiff - docker-compose.yml
Prevent node_modules from mounting to save rake yarn:install step
[rails.git] / docker-compose.yml
index 9719f0e7bbc9735a58c5bfdf07d500ecb616e6bb..f03d315c707184364538cce87b677ec05272bae1 100644 (file)
@@ -8,6 +8,8 @@ services:
       - .:/app
       # don't mount tmp directory (https://github.com/Shopify/bootsnap/issues/177)
       - /app/tmp
+      # Prevent node_modules from mounting so it's not shared between host OS and Docker
+      - /app/node_modules/
     ports:
       - "3000:3000"
     environment: