OSDN Git Service

Regular updates
[twpd/master.git] / docker-compose.yml
index 0fd2a7c..5a73e73 100644 (file)
@@ -5,12 +5,15 @@ services:
     volumes:
       - .:/app
       - rubygems:/usr/local/bundle
-      - node_modules:/app/node_modules
+      - ./node_modules:/app/node_modules
+      - yarn_cache:/root/.cache/yarn
     ports:
       - '4001:4001'
       - '35729:35729'
-    command: 'env PORT=4001 HOST=0.0.0.0 yarn run dev'
+    command: >
+      bash -c 'yarn; bundle; env PORT=4001 HOST=0.0.0.0 yarn run dev'
 
 volumes:
   rubygems:
   node_modules:
+  yarn_cache: