Skip to content

Commit 228d56e

Browse files
refactor: Update Docker configurations to use named volumes for Composer cache, improving consistency across services. (#115)
1 parent b029795 commit 228d56e

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

docker-compose.frankenphp.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ services:
2323
restart: always
2424
volumes:
2525
- ./:/app
26-
- ${HOME}/.composer-docker/cache:/var/www/.composer/cache:delegated
27-
- caddy_data:/data
2826
- caddy_config:/config
27+
- caddy_data:/data
28+
- composer_cache:/var/www/.composer/cache
2929
working_dir: /app
3030
tty: true
3131

3232
volumes:
3333
caddy_data:
3434
caddy_config:
35+
composer_cache:

docker-compose.nginx.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ services:
2222
restart: always
2323
volumes:
2424
- ./:/app
25-
- ${HOME}/.composer-docker/cache:/var/www/.composer/cache:delegated
25+
- composer_cache:/var/www/.composer/cache
2626
working_dir: /app
2727
tty: true
28+
29+
volumes:
30+
composer_cache:

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ services:
2222
restart: always
2323
volumes:
2424
- ./:/app
25-
- ${HOME}/.composer-docker/cache:/var/www/.composer/cache:delegated
25+
- composer_cache:/var/www/.composer/cache
2626
working_dir: /app
2727
tty: true
28+
29+
volumes:
30+
composer_cache:

0 commit comments

Comments
 (0)