From 9f9c0bc4976c50b7c059d7ce4aff780f2b7c789c Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 10 May 2021 20:40:36 +0000 Subject: [PATCH] Move huge directories to volumes --- .devcontainer/docker-compose.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index 65f2cb9..988dee6 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -19,10 +19,19 @@ services: volumes: - ..:/vscode/src/mantra - ../test/website:/var/www/html + - main-node:/vscode/src/mantra/node_modules/ + - main-composer:/vscode/src/mantra/vendor/ db: image: mysql:5 env_file: devcontainer.env environment: - MYSQL_RANDOM_ROOT_PASSWORD=yes volumes: - - ./mysql-data:/var/lib/mysql \ No newline at end of file + - mysql-data:/var/lib/mysql + +volumes: + main-node: + resources: + main-composer: + test-composer: + mysql-data: