docker compose updated
This commit is contained in:
parent
5ed6e1d34b
commit
454083bd35
|
@ -22,9 +22,6 @@ COPY . .
|
|||
# Install Laravel dependencies
|
||||
RUN composer install --no-dev --optimize-autoloader
|
||||
|
||||
# Set permissions
|
||||
RUN chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache
|
||||
|
||||
# Expose port
|
||||
EXPOSE 9000
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ services:
|
|||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: laravel
|
||||
user: "1000:1000"
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
|
|
|
@ -5,6 +5,9 @@ server {
|
|||
root /var/www/html/public;
|
||||
index index.php index.html;
|
||||
|
||||
fastcgi_buffers 16 16k;
|
||||
fastcgi_buffer_size 32k;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue