Compare commits

...

9 Commits

Author SHA1 Message Date
t0stbrot
0e4badfd09 add composer 2025-10-12 12:26:11 +02:00
t0stbrot
c69f50f41b add php-intl 2025-10-12 12:16:41 +02:00
t0stbrot
e7d540c64e add imagick php 2025-10-11 15:25:42 +02:00
t0stbrot
1854618521 change bash to webroot cd 2025-10-11 15:18:31 +02:00
t0stbrot
9563555514 fix 2025-10-11 15:18:05 +02:00
t0stbrot
9144e80ed4 move start.sh to root 2025-10-11 15:00:33 +02:00
t0stbrot
2bd6dcab73 remove ipv6 to fix duplicate 2025-10-11 14:57:38 +02:00
t0stbrot
33b7e81a4b add redis 2025-10-11 14:56:29 +02:00
t0stbrot
0b0d2ed090 adjust main setting 2025-10-11 14:54:06 +02:00
5 changed files with 17 additions and 11 deletions

View File

@@ -1,7 +1,11 @@
FROM alpine:latest
RUN apk --update --no-cache add ca-certificates nginx bash
RUN apk add php84 php84-fpm php84-soap php84-openssl php84-gmp php84-pdo_odbc php84-json php84-dom php84-pdo php84-zip php84-mysqli php84-sqlite3 php84-apcu php84-pdo_pgsql php84-bcmath php84-gd php84-odbc php84-pdo_mysql php84-pdo_sqlite php84-gettext php84-xmlreader php84-bz2 php84-iconv php84-pdo_dblib php84-curl php84-ctype php84-phar php84-fileinfo php84-mbstring php84-tokenizer php84-redis
RUN apk --update --no-cache add ca-certificates nginx bash redis
RUN apk add php84 php84-intl php84-fpm php84-soap php84-openssl php84-gmp php84-pdo_odbc php84-json php84-dom php84-pdo php84-zip php84-mysqli php84-sqlite3 php84-apcu php84-pdo_pgsql php84-bcmath php84-gd php84-odbc php84-pdo_mysql php84-pdo_sqlite php84-gettext php84-xmlreader php84-bz2 php84-iconv php84-pdo_dblib php84-curl php84-ctype php84-phar php84-fileinfo php84-mbstring php84-tokenizer php84-redis php84-pecl-imagick
RUN apk add composer
COPY ./start.sh /start.sh
RUN chmod 777 /start.sh
USER container
ENV USER=container

View File

@@ -27,7 +27,7 @@
"name": "Startup Command",
"description": "The command to start",
"env_variable": "STARTUP_CMD",
"default_value": ".\/start.sh",
"default_value": "\/start.sh",
"user_viewable": 1,
"user_editable": 1,
"rules": "present"

View File

@@ -1,3 +1,4 @@
server {
listen 80;
server_name "";
@@ -14,7 +15,7 @@ server {
location = /robots.txt { access_log off; log_not_found off; }
# allow larger file uploads and longer script runtimes
client_max_body_size 100m;
client_max_body_size 0;
client_body_timeout 120s;
sendfile off;
@@ -24,7 +25,7 @@ server {
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
fastcgi_param PHP_VALUE "upload_max_filesize = 1024M \n post_max_size=1024M";
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTP_PROXY "";
fastcgi_intercept_errors off;

View File

@@ -26,12 +26,9 @@ http {
uwsgi_temp_path /tmp;
scgi_temp_path /tmp;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
#ssl_certificate /path/to/your/key/fullchain.pem;
#ssl_certificate_key /path/to/your/key/privkey.pem;
access_log /home/container/access.log;
access_log /dev/stdout;
error_log /home/container/error.log;
@@ -41,4 +38,4 @@ http {
gzip_disable "msie6";
include /home/container/nginx/conf.d/*.conf;
}
}

View File

@@ -3,7 +3,11 @@
echo "Starting PHP-FPM..."
/usr/sbin/php-fpm84 --fpm-config /home/container/php-fpm/php-fpm.conf --daemonize
echo "Starting Nginx..."
echo "Starting Redis"
redis-server &
echo "Starting Nginx"
/usr/sbin/nginx -c /home/container/nginx/nginx.conf &
cd /home/container/webroot
/bin/bash