#1 - project skeleton

This commit is contained in:
Adrian Hopek
2022-01-10 12:19:04 +01:00
parent 683b2367ea
commit d4f522f9d8
90 changed files with 25978 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
server {
listen 80 default;
server_name localhost;
client_max_body_size 108M;
access_log /dev/stdout;
root /application/public;
index index.php;
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
location ~ \.php$ {
fastcgi_pass toby-php:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "error_log=/dev/stdout";
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
include fastcgi_params;
}
}

20
docker/dev/php/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM ghcr.io/blumilksoftware/php:8.1
ARG XDEBUG_VERSION=3.1.2
ARG INSTALL_XDEBUG=false
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
apk --no-cache add $PHPIZE_DEPS \
&& pecl install xdebug-${XDEBUG_VERSION} \
&& docker-php-ext-enable xdebug \
;fi
RUN apk --no-cache add \
zip \
libzip-dev \
libpng-dev \
&& docker-php-ext-install \
zip \
gd \
&& docker-php-ext-configure \
zip

9
docker/dev/php/php.ini Normal file
View File

@@ -0,0 +1,9 @@
[PHP]
memory_limit = 1G
[xdebug]
xdebug.client_host=host.docker.internal
xdebug.client_port=9003
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.log_level=0