Compare commits
No commits in common. "55cf2afde307eb92fd5d7990be462d1d68bb52bc" and "37ba0ec172ca775d605346b69111c073388a7609" have entirely different histories.
55cf2afde3
...
37ba0ec172
@ -10,11 +10,11 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"esoko/soko-web": "0.15",
|
"esoko/soko-web": "0.14.1",
|
||||||
"firebase/php-jwt": "^6.4"
|
"firebase/php-jwt": "^6.4"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^10.3",
|
"phpunit/phpunit": "^9.6",
|
||||||
"phpstan/phpstan": "^1.10"
|
"phpstan/phpstan": "^1.10"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
970
composer.lock
generated
970
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1,9 +1,9 @@
|
|||||||
FROM ubuntu:22.04 AS rvr_base
|
FROM ubuntu:focal AS rvr_base
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
RUN apt update --fix-missing && apt install -y sudo curl git unzip mariadb-client nginx \
|
RUN apt update --fix-missing && apt install -y sudo curl git unzip mariadb-client nginx \
|
||||||
php-apcu php8.1-cli php8.1-curl php8.1-fpm php8.1-mbstring php8.1-mysql php8.1-zip php8.1-xml
|
php-apcu php7.4-cli php7.4-curl php7.4-fpm php7.4-mbstring php7.4-mysql php7.4-zip php7.4-xml
|
||||||
|
|
||||||
RUN mkdir -p /run/php
|
RUN mkdir -p /run/php
|
||||||
COPY docker/configs/nginx.conf /etc/nginx/sites-available/default
|
COPY docker/configs/nginx.conf /etc/nginx/sites-available/default
|
||||||
@ -20,9 +20,9 @@ FROM rvr_base AS rvr_dev
|
|||||||
|
|
||||||
RUN apt update --fix-missing && apt install -y php-xdebug
|
RUN apt update --fix-missing && apt install -y php-xdebug
|
||||||
|
|
||||||
RUN echo "xdebug.remote_enable = 1" >> /etc/php/8.1/mods-available/xdebug.ini &&\
|
RUN echo "xdebug.remote_enable = 1" >> /etc/php/7.4/mods-available/xdebug.ini &&\
|
||||||
echo "xdebug.remote_autostart = 1" >> /etc/php/8.1/mods-available/xdebug.ini &&\
|
echo "xdebug.remote_autostart = 1" >> /etc/php/7.4/mods-available/xdebug.ini &&\
|
||||||
echo "xdebug.remote_connect_back = 1" >> /etc/php/8.1/mods-available/xdebug.ini
|
echo "xdebug.remote_connect_back = 1" >> /etc/php/7.4/mods-available/xdebug.ini
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
@ -14,7 +14,7 @@ server {
|
|||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
include snippets/fastcgi-php.conf;
|
include snippets/fastcgi-php.conf;
|
||||||
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
|
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /\.ht {
|
location ~ /\.ht {
|
||||||
|
@ -20,11 +20,11 @@ USER_UID=$(stat -c "%u" .env)
|
|||||||
USER_GID=$(stat -c "%g" .env)
|
USER_GID=$(stat -c "%g" .env)
|
||||||
groupadd --gid $USER_GID rvr
|
groupadd --gid $USER_GID rvr
|
||||||
useradd --uid $USER_UID --gid $USER_GID rvr
|
useradd --uid $USER_UID --gid $USER_GID rvr
|
||||||
sed -i -e "s/^user = .*$/user = rvr/g" -e "s/^group = .*$/group = rvr/g" /etc/php/8.1/fpm/pool.d/www.conf
|
sed -i -e "s/^user = .*$/user = rvr/g" -e "s/^group = .*$/group = rvr/g" /etc/php/7.4/fpm/pool.d/www.conf
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
/usr/sbin/php-fpm8.1 -F &
|
/usr/sbin/php-fpm7.4 -F &
|
||||||
/usr/sbin/nginx -g 'daemon off;' &
|
/usr/sbin/nginx -g 'daemon off;' &
|
||||||
|
|
||||||
wait -n
|
wait -n
|
||||||
|
@ -14,12 +14,12 @@ USER_GID=$(stat -c "%g" .env)
|
|||||||
groupadd --gid $USER_GID rvr
|
groupadd --gid $USER_GID rvr
|
||||||
useradd --uid $USER_UID --gid $USER_GID rvr
|
useradd --uid $USER_UID --gid $USER_GID rvr
|
||||||
chown -R rvr:rvr cache
|
chown -R rvr:rvr cache
|
||||||
sed -i -e "s/^user = .*$/user = rvr/g" -e "s/^group = .*$/group = rvr/g" /etc/php/8.1/fpm/pool.d/www.conf
|
sed -i -e "s/^user = .*$/user = rvr/g" -e "s/^group = .*$/group = rvr/g" /etc/php/7.4/fpm/pool.d/www.conf
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
/usr/sbin/cron -f &
|
/usr/sbin/cron -f &
|
||||||
/usr/sbin/php-fpm8.1 -F &
|
/usr/sbin/php-fpm7.4 -F &
|
||||||
/usr/sbin/nginx -g 'daemon off;' &
|
/usr/sbin/nginx -g 'daemon off;' &
|
||||||
|
|
||||||
wait -n
|
wait -n
|
||||||
|
Loading…
Reference in New Issue
Block a user