first commit

This commit is contained in:
2026-02-04 23:23:42 +07:00
commit ee28ea1a2d
202 changed files with 34797 additions and 0 deletions

3
docker/nginx/Dockerfile Normal file
View File

@@ -0,0 +1,3 @@
FROM nginx:1.29.4-alpine
COPY nginx.conf /etc/nginx/nginx.conf

37
docker/nginx/nginx.conf Normal file
View File

@@ -0,0 +1,37 @@
user nginx;
worker_processes auto;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
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$ {
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ /\. {
deny all;
}
}
}

31
docker/php/Dockerfile Normal file
View File

@@ -0,0 +1,31 @@
FROM php:8.5-fpm-alpine
ARG USER_ID=1000
ARG GROUP_ID=1000
ARG USER_NAME=appuser
RUN apk add --no-cache \
git \
zip \
unzip \
libzip-dev \
linux-headers \
$PHPIZE_DEPS \
&& docker-php-ext-install pdo_mysql \
&& apk del $PHPIZE_DEPS
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
RUN addgroup -g ${GROUP_ID} -S ${USER_NAME} && \
adduser -u ${USER_ID} -S ${USER_NAME} -G ${USER_NAME}
WORKDIR /var/www
COPY --chown=${USER_NAME}:${USER_NAME} laravel/ /var/www/
RUN chown -R ${USER_NAME}:${USER_NAME} /var/www && \
find /var/www -type f -exec chmod 644 {} \; && \
find /var/www -type d -exec chmod 755 {} \; && \
chmod -R 775 /var/www/storage /var/www/bootstrap
USER ${USER_NAME}