Build Laravel 13 ticket assistant with Docker, Livewire admin, and helpdesk scraper command
This commit is contained in:
21
docker/nginx/default.conf
Normal file
21
docker/nginx/default.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root /var/www/public;
|
||||
index index.php index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_pass app:9000;
|
||||
fastcgi_index index.php;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
22
docker/php/Dockerfile
Normal file
22
docker/php/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM php:8.3-fpm-alpine
|
||||
|
||||
WORKDIR /var/www
|
||||
|
||||
RUN apk add --no-cache \
|
||||
bash \
|
||||
curl \
|
||||
git \
|
||||
libpq \
|
||||
libzip-dev \
|
||||
oniguruma-dev \
|
||||
postgresql-dev \
|
||||
unzip \
|
||||
zip \
|
||||
icu-dev \
|
||||
$PHPIZE_DEPS \
|
||||
&& docker-php-ext-install pdo_pgsql mbstring zip intl \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
||||
|
||||
CMD ["php-fpm", "-F"]
|
||||
Reference in New Issue
Block a user