Compare commits
2 Commits
0c69082f0e
...
d6723fb143
Author | SHA1 | Date | |
---|---|---|---|
d6723fb143 | |||
746ca35b69 |
@ -8,7 +8,7 @@
|
|||||||
# Using SetHandler avoids issues with using ProxyPassMatch in combination
|
# Using SetHandler avoids issues with using ProxyPassMatch in combination
|
||||||
# with mod_rewrite or mod_autoindex
|
# with mod_rewrite or mod_autoindex
|
||||||
<FilesMatch \.php$>
|
<FilesMatch \.php$>
|
||||||
SetHandler "proxy:unix:/run/php/php8.1-fpm.sock|fcgi://127.0.0.1:9000"
|
SetHandler "proxy:unix:/run/php/php8.4-fpm.sock|fcgi://127.0.0.1:9000"
|
||||||
# for Unix sockets, Apache 2.4.10 or higher
|
# for Unix sockets, Apache 2.4.10 or higher
|
||||||
# SetHandler proxy:unix:/path/to/fpm.sock|fcgi://dummy
|
# SetHandler proxy:unix:/path/to/fpm.sock|fcgi://dummy
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
@ -7,7 +7,7 @@ ARG https_proxy=
|
|||||||
|
|
||||||
ENV WAITFORIT_VERSION="v2.4.1"
|
ENV WAITFORIT_VERSION="v2.4.1"
|
||||||
|
|
||||||
ARG PHP_VERSION="8.1"
|
ARG PHP_VERSION="8.4"
|
||||||
ENV PHP_VERSION $PHP_VERSION
|
ENV PHP_VERSION $PHP_VERSION
|
||||||
|
|
||||||
RUN export DEBIAN_FRONTEND=noninteractive && \
|
RUN export DEBIAN_FRONTEND=noninteractive && \
|
||||||
@ -68,14 +68,14 @@ RUN chmod +x /var/www/install-composer.sh &&\
|
|||||||
# On active les mods d'apache nécessaires
|
# On active les mods d'apache nécessaires
|
||||||
RUN a2enmod rewrite
|
RUN a2enmod rewrite
|
||||||
RUN a2enmod proxy_fcgi setenvif
|
RUN a2enmod proxy_fcgi setenvif
|
||||||
RUN a2enconf php8.1-fpm
|
RUN a2enconf php8.4-fpm
|
||||||
RUN a2enmod proxy
|
RUN a2enmod proxy
|
||||||
RUN a2enmod expires
|
RUN a2enmod expires
|
||||||
RUN a2enmod headers
|
RUN a2enmod headers
|
||||||
|
|
||||||
# On injecte les bonnes configs apache et php-fpm
|
# On injecte les bonnes configs apache et php-fpm
|
||||||
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
|
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
|
||||||
COPY www.conf /etc/php/8.1/fpm/pool.d/www.conf
|
COPY www.conf /etc/php/8.4/fpm/pool.d/www.conf
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
@ -83,8 +83,8 @@ EXPOSE 80
|
|||||||
WORKDIR /var/www
|
WORKDIR /var/www
|
||||||
|
|
||||||
# On démarre php-fpm une fois pour créer les sockets
|
# On démarre php-fpm une fois pour créer les sockets
|
||||||
RUN service php8.1-fpm start
|
RUN service php8.4-fpm start
|
||||||
RUN service php8.1-fpm stop
|
RUN service php8.4-fpm stop
|
||||||
|
|
||||||
|
|
||||||
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
||||||
@ -99,7 +99,7 @@ RUN sed -i '/imklog/s/^/#/' /etc/rsyslog.conf
|
|||||||
|
|
||||||
COPY rsyslog.conf /etc/rsyslog.d/var/www.conf
|
COPY rsyslog.conf /etc/rsyslog.d/var/www.conf
|
||||||
COPY supervisor.ini /etc/supervisor/supervisor.ini
|
COPY supervisor.ini /etc/supervisor/supervisor.ini
|
||||||
COPY php.ini /etc/php/8.1/fpm/php.ini
|
COPY php.ini /etc/php/8.4/fpm/php.ini
|
||||||
|
|
||||||
VOLUME /container-lifecycle
|
VOLUME /container-lifecycle
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ stderr_logfile_maxbytes=0
|
|||||||
|
|
||||||
[program:php-fpm]
|
[program:php-fpm]
|
||||||
environment=HOSTNAME="%(ENV_HOSTNAME)s"
|
environment=HOSTNAME="%(ENV_HOSTNAME)s"
|
||||||
command = /usr/sbin/php-fpm8.1 -F
|
command = /usr/sbin/php-fpm8.4 -F
|
||||||
autostart = true
|
autostart = true
|
||||||
autorestart = true
|
autorestart = true
|
||||||
directory = /var/www
|
directory = /var/www
|
||||||
|
@ -6,7 +6,7 @@ error_log=/dev/stderr
|
|||||||
user = www-data
|
user = www-data
|
||||||
group = www-data
|
group = www-data
|
||||||
|
|
||||||
listen = /run/php/php8.1-fpm.sock
|
listen = /run/php/php8.4-fpm.sock
|
||||||
|
|
||||||
listen.owner = www-data
|
listen.owner = www-data
|
||||||
listen.group = www-data
|
listen.group = www-data
|
||||||
|
Reference in New Issue
Block a user