Initial commit

This commit is contained in:
Zdeněk Burda
2026-01-09 21:26:40 +01:00
parent e83aec6dca
commit 41e3ce6f25
404 changed files with 61250 additions and 28 deletions

21
docker/app/entrypoint.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
# docker/app/entrypoint.sh
set -euo pipefail
# Pokud nechceš migrovat/cachovat při startu, tyto bloky odstraň.
# V produkci často dává smysl mít to řízené deploy procesem.
php artisan config:clear >/dev/null 2>&1 || true
php artisan route:clear >/dev/null 2>&1 || true
php artisan view:clear >/dev/null 2>&1 || true
# Cache pro production (vyžaduje korektní .env)
php artisan config:cache || true
php artisan route:cache || true
php artisan view:cache || true
php artisan event:cache || true
# Migrace (pokud chceš automaticky; jinak vypnout)
php artisan migrate --force || true
exec "$@"

28
docker/nginx/default.conf Normal file
View File

@@ -0,0 +1,28 @@
# docker/nginx/default.conf
server {
listen 80;
server_name _;
root /var/www/html/public;
index index.php;
client_max_body_size 50m;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass app:9000;
fastcgi_read_timeout 300;
}
location ~* \.(?:css|js|map|png|jpg|jpeg|gif|svg|ico|woff2?)$ {
expires 30d;
access_log off;
try_files $uri =404;
}
}

8
docker/php/opcache.ini Normal file
View File

@@ -0,0 +1,8 @@
; docker/php/opcache.ini
opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=20000
opcache.validate_timestamps=0
opcache.jit=0

6
docker/php/php.ini Normal file
View File

@@ -0,0 +1,6 @@
; docker/php/php.ini
memory_limit=512M
upload_max_filesize=50M
post_max_size=50M
max_execution_time=300
date.timezone=Europe/Prague