Skip to content

Commit

Permalink
Ignore compose.override.yaml and add template with mounts for local…
Browse files Browse the repository at this point in the history
… composer config/cache (#21)

Co-authored-by: Jacob Dreesen <j.dreesen@neusta.de>
  • Loading branch information
mike4git and jdreesen authored Sep 27, 2024
1 parent eed7717 commit b4da92f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Docker
/compose.override.yaml

# Composer
/composer.lock
/vendor/
Expand Down
8 changes: 8 additions & 0 deletions compose.override.yaml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
php:
environment:
- COMPOSER_HOME
- COMPOSER_CACHE_DIR
volumes:
- ${COMPOSER_HOME:-$HOME/.config/composer}:$COMPOSER_HOME
- ${COMPOSER_CACHE_DIR:-$HOME/.cache/composer}:$COMPOSER_CACHE_DIR

0 comments on commit b4da92f

Please sign in to comment.