Skip to content

Commit

Permalink
build: use separate volumes for each container node_nodules
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanna_37 committed Dec 8, 2022
1 parent 8fc72eb commit c992176
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
- .:/project

# Keep node_modules only inside a volume (for decluttering and performance)
- nodemodules:/project/node_modules
- nodemodules_builder:/project/node_modules

# Sync time with host
- "/etc/timezone:/etc/timezone:ro"
Expand Down Expand Up @@ -59,7 +59,7 @@ services:
- .:/project

# Keep node_modules only inside a volume (for decluttering and performance)
- nodemodules:/project/node_modules
- nodemodules_tester:/project/node_modules

# Sync time with host
- "/etc/timezone:/etc/timezone:ro"
Expand All @@ -78,4 +78,5 @@ services:


volumes:
nodemodules:
nodemodules_builder:
nodemodules_tester:

0 comments on commit c992176

Please sign in to comment.