diff --git a/docker-compose.yml b/docker-compose.yml index e3ee893..64f5204 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,6 +20,7 @@ services: restart: unless-stopped command: > sh -c " + mkdir -p storage bootstrap/cache storage/logs && chown -R www-data:www-data storage bootstrap/cache && php artisan package:discover --ansi && php artisan storage:link --ansi || true && @@ -49,7 +50,12 @@ services: env_file: - .env.docker restart: unless-stopped - command: ["sh", "-c", "php artisan queue:work --sleep=3 --tries=3 --max-time=3600"] + command: > + sh -c " + mkdir -p storage bootstrap/cache storage/logs && + chown -R www-data:www-data storage bootstrap/cache && + php artisan queue:work --sleep=3 --tries=3 --max-time=3600 + " volumes: - storage_data:/var/www/html/storage - bootstrap_cache:/var/www/html/bootstrap/cache @@ -68,7 +74,12 @@ services: env_file: - .env.docker restart: unless-stopped - command: ["sh", "-c", "php artisan schedule:work"] + command: > + sh -c " + mkdir -p storage bootstrap/cache storage/logs && + chown -R www-data:www-data storage bootstrap/cache && + php artisan schedule:work + " volumes: - storage_data:/var/www/html/storage - bootstrap_cache:/var/www/html/bootstrap/cache