Правки в конфигах docker

This commit is contained in:
brusnitsyn
2025-12-16 17:01:58 +09:00
parent cb2394ebba
commit ab12a692fa
2 changed files with 12 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ FROM php:8.3-fpm
# 1. Сначала обновляем и ставим минимальные зависимости
RUN apt-get update && apt-get install -y \
git \
wget \
gnupg \
ca-certificates \
@@ -87,7 +88,16 @@ RUN docker-php-ext-install \
# && rm -rf /var/lib/apt/lists/*
# 12. Устанавливаем через PECL по одному с проверкой
RUN pecl install redis && docker-php-ext-enable redis
#RUN pecl install redis && docker-php-ext-enable redis
RUN cd /tmp && \
git clone --branch 6.3.0 --depth 1 https://github.com/phpredis/phpredis.git && \
cd phpredis && \
phpize && \
./configure && \
make -j$(nproc) && \
make install && \
docker-php-ext-enable redis && \
rm -rf /tmp/phpredis
# 13. Imagick может быть проблемным - ставим последним
#RUN if pecl install imagick; then \

View File

@@ -13,7 +13,7 @@ services:
SERVICE_TAGS: dev
working_dir: /var/www
volumes:
- ./:/var/www
- ./.env:/var/www/.env
- ./docker/php.ini:/usr/local/etc/php/conf.d/app.ini
networks:
- app-network