mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
add /phpinfo uri to docker container with PHP 8.0
This commit is contained in:
parent
63fca720d2
commit
fe9db0b68e
7 changed files with 35 additions and 12 deletions
1
docker/dev/mtt-php80-apache/.env
Normal file
1
docker/dev/mtt-php80-apache/.env
Normal file
|
|
@ -0,0 +1 @@
|
|||
PLATFORM_NAME=mtt-dev-php80-apache
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
|
||||
FROM php:8.0-apache
|
||||
|
||||
RUN docker-php-ext-install mysqli && \
|
||||
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
11
docker/dev/mtt-php80-apache/Dockerfile-web
Normal file
11
docker/dev/mtt-php80-apache/Dockerfile-web
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
FROM php:8.0-apache
|
||||
|
||||
RUN docker-php-ext-install mysqli && \
|
||||
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \
|
||||
mkdir /var/www/phpinfo
|
||||
|
||||
COPY php-mtt.ini /usr/local/etc/php/conf.d/
|
||||
COPY php-opcache.ini /usr/local/etc/php/conf.d/
|
||||
COPY phpinfo.conf /etc/apache2/conf-enabled/
|
||||
COPY phpinfo.php /var/www/phpinfo/
|
||||
|
|
@ -1,13 +1,15 @@
|
|||
version: "3.9"
|
||||
|
||||
services:
|
||||
web:
|
||||
build: ./
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-web
|
||||
image: mytinytodo-dev:php8.0-apache
|
||||
container_name: mtt-dev-php80-apache
|
||||
container_name: ${PLATFORM_NAME}-web
|
||||
ports:
|
||||
- "8080:80"
|
||||
- "8080:80"
|
||||
environment:
|
||||
- MTT_ENABLE_DEBUG=YES
|
||||
- MTT_ENABLE_DEBUG=YES
|
||||
volumes:
|
||||
- ../../../src:/var/www/html
|
||||
- ./php-mtt.ini:/usr/local/etc/php/conf.d/php-mtt.ini
|
||||
- ./php-opcache.ini:/usr/local/etc/php/conf.d/php-opcache.ini
|
||||
- ../../../src:/var/www/html
|
||||
|
|
|
|||
|
|
@ -9,6 +9,14 @@ zend_extension=opcache.so
|
|||
opcache.enable=0
|
||||
opcache.enable_cli=0
|
||||
|
||||
; JIT will work only if opcache is enabled and jit_buffer_size is not zero.
|
||||
; To disable JIT set the buffer size to 0.
|
||||
opcache.jit_buffer_size=64M
|
||||
|
||||
; JIT mode. Read more at https://www.php.net/manual/en/opcache.configuration.php#ini.opcache.jit
|
||||
; Default is tracing.
|
||||
opcache.jit=tracing
|
||||
|
||||
; The size of the shared memory storage used by OPcache, in megabytes. The minimum permissible value is "8", which is enforced if a smaller value is set.
|
||||
; Default is 128.
|
||||
opcache.memory_consumption=128
|
||||
|
|
|
|||
3
docker/dev/mtt-php80-apache/phpinfo.conf
Normal file
3
docker/dev/mtt-php80-apache/phpinfo.conf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# mod_alias is required
|
||||
|
||||
Alias "/phpinfo" "/var/www/phpinfo/phpinfo.php"
|
||||
3
docker/dev/mtt-php80-apache/phpinfo.php
Normal file
3
docker/dev/mtt-php80-apache/phpinfo.php
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
|
||||
phpinfo();
|
||||
Loading…
Reference in a new issue