Ensure permissions on volumes are correct

mv public directory inside a single RUN to not increase the image
This commit is contained in:
Benjamin Brummer
2024-12-01 12:11:57 +01:00
parent e7bc565745
commit fab57c9db3
3 changed files with 34 additions and 28 deletions

View File

@@ -13,13 +13,13 @@ services:
env_file:
- ./.env
volumes:
- ./.env:/var/www/html/.env:ro
- ./.env:/var/www/html/.env
- ./php/php.ini:/usr/local/etc/php/conf.d/zzz-php.ini:ro
- ./php/php-fpm.conf:/usr/local/etc/php-fpm.d/zzz-php-fpm.conf:ro
- ./supervisor/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf:ro
- app_storage:/var/www/html/storage
- app_cache:/var/www/html/bootstrap/cache
- image_public:/var/www/html/public:ro
- image_public:/var/www/html/public
networks:
- app-network
depends_on: