Skip to content

Commit

Permalink
chore(docker-pack): update recipe
Browse files Browse the repository at this point in the history
- update PHP to 8.3
- mount COMPOSER_HOME
- SVG files are now compressed using Brotli by `lephare/apache` Docker image
  • Loading branch information
lucasmirloup committed Jun 24, 2024
1 parent 5bd7213 commit 3600b82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 7 additions & 3 deletions faros-ng/docker-pack/2.2/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
services:
php:
image: lephare/php:8.2
image: lephare/php:8.3
volumes:
- ./:/var/www/symfony
- ${COMPOSER_HOME:-~/.composer}:/tmp/composer
environment:
COMPOSER_HOME: /tmp/composer
DOCKER_HOST_SUFFIX: ${DOCKER_HOST_SUFFIX:-local}
SYMFONY_DEPRECATIONS_HELPER: "max[direct]=0&verbose=1"
networks:
- default
- private

web:
image: lephare/apache:2.4
networks:
- default
- public
volumes:
- ./:/var/www/symfony
volumes_from:
- php:ro
labels:
caddy: 'project.${DOCKER_HOST_SUFFIX:-local}'
caddy.tls: internal
Expand Down
4 changes: 0 additions & 4 deletions faros-ng/docker-pack/2.2/public/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ DirectoryIndex index.php
ExpiresByType application/x-font-woff "access plus 10 years"
</IfModule>

<filesMatch ".(svg)$">
AddOutputFilterByType DEFLATE image/svg+xml
</filesMatch>

<filesMatch ".(svg|woff2|woff)$">
ExpiresDefault "access plus 10 years"
FileETag None
Expand Down

0 comments on commit 3600b82

Please sign in to comment.