Compare commits

..

1 Commits

Author SHA1 Message Date
Ваше Имя 00475b5133 up 2025-11-17 22:50:34 +05:00
6 changed files with 6 additions and 17 deletions

View File

@ -6,7 +6,7 @@ services:
dockerfile: Dockerfile
command: sh /home/scripts/start.sh
volumes:
- ../nginx/nginx_config_dev.conf:/etc/nginx/http.d/default.conf
- ../nginx/nginx_config_dev.conf:/etc/nginx/conf.d/default.conf
- ../../app:/var/www/html
- ../scripts/nginx:/home/scripts
- ../../letsencrypt:/etc/letsencrypt

View File

@ -35,12 +35,10 @@ server {
gzip_types text/plain text/css application/javascript;
client_max_body_size 1000M;
error_log /var/log/nginx/debug.log debug;
set $host_path "/var/www";
server_name _;
root $host_path/html/standard_encode;
root $host_path/html/public;
set $bootstrap "index.php";
charset utf-8;

View File

@ -1,3 +1,3 @@
FROM alpine:3.19
FROM alpine:3.13
COPY ./scripts/* /home/
RUN sh /home/install.sh

View File

@ -1,4 +1,4 @@
FROM ubuntu:24.10
FROM ubuntu:24.04
COPY ./scripts/* /home/
ENV PHP_IDE_CONFIG='serverName=php'
RUN sh /home/install_ubuntu.sh

View File

@ -1,11 +1,9 @@
#!/usr/bin/env bash
sed -i -r 's/([a-z]{2}.)?archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
sed -i -r 's/security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
apt update
DEBIAN_FRONTEND=noninteractive apt -y install tzdata
apt install php-cli \
php-redis \
DEBIAN_FRONTEND=noninteractive apt -y install php-cli
DEBIAN_FRONTEND=noninteractive apt -y install php-redis \
php-luasandbox \
php-fpm \
php-common \
@ -31,9 +29,6 @@ composer -y
apt install supervisor -y
sed -i 's@listen = /run/php/php8.3-fpm.sock@listen = 0.0.0.0:9000@g' /etc/php/8.3/fpm/pool.d/www.conf
sed -i 's@short_open_tag@short_open_tag = On@g' /etc/php/8.3/fpm/php.ini
sed -i 's@short_open_tag = Off@short_open_tag = On@g' /etc/php/8.3/fpm/php.ini
sed -i 's@;opcache.revalidate_freq=2@opcache.revalidate_freq=0@g' /etc/php/8.3/fpm/php.ini
sed -i 's@post_max_size = 8M@post_max_size = 85M@g' /etc/php/8.3/fpm/php.ini
sed -i 's@upload_max_filesize = 2M@upload_max_filesize = 10M@g' /etc/php/8.3/fpm/php.ini
@ -41,10 +36,6 @@ sed -i 's@memory_limit = 128M@memory_limit = 512M@g' /etc/php/8.3/fpm/php.ini
sed -i 's@memory_limit = 128M@memory_limit = 512M@g' /etc/php/8.3/cli/php.ini
sed -i 's@; short_open_tag@short_open_tag = On@g' /etc/php/8.3/cli/php.ini
sed -i 's@;opcache.revalidate_freq=2@opcache.revalidate_freq=0@g' /etc/php/8.3/cli/php.ini
XDEBUG_CONF_CLI="/etc/php/8.3/cli/conf.d/20-xdebug.ini"
# echo 'zend_extension=xdebug.so' >> $XDEBUG_CONF
echo 'xdebug.start_with_request=yes' >> $XDEBUG_CONF_CLI

BIN
hello

Binary file not shown.