From a11c187e5d56365e44a642c5b803e515dd03c422 Mon Sep 17 00:00:00 2001 From: "Michael Albrecht (personal)" Date: Sat, 10 Aug 2024 10:21:12 +0200 Subject: [PATCH 1/2] fix: customizing cache directory possible --- .gitignore | 3 +++ compose.override.yaml.dist | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 compose.override.yaml.dist diff --git a/.gitignore b/.gitignore index ad0719b..5af4d77 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# Docker +/compose.override.yaml + # Composer /composer.lock /vendor/ diff --git a/compose.override.yaml.dist b/compose.override.yaml.dist new file mode 100644 index 0000000..544f733 --- /dev/null +++ b/compose.override.yaml.dist @@ -0,0 +1,4 @@ +services: + php: + volumes: + - ~/.composer/:/.cache/composer/ From 38940140d7e78a8800cd903af72ad222087e9750 Mon Sep 17 00:00:00 2001 From: Michael Albrecht Date: Fri, 16 Aug 2024 08:35:06 +0200 Subject: [PATCH 2/2] Update compose.override.yaml.dist Co-authored-by: Jacob Dreesen --- compose.override.yaml.dist | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compose.override.yaml.dist b/compose.override.yaml.dist index 544f733..67b778c 100644 --- a/compose.override.yaml.dist +++ b/compose.override.yaml.dist @@ -1,4 +1,8 @@ services: php: + environment: + - COMPOSER_HOME + - COMPOSER_CACHE_DIR volumes: - - ~/.composer/:/.cache/composer/ + - ${COMPOSER_HOME:-$HOME/.config/composer}:$COMPOSER_HOME + - ${COMPOSER_CACHE_DIR:-$HOME/.cache/composer}:$COMPOSER_CACHE_DIR