File tree Expand file tree Collapse file tree 6 files changed +989
-9
lines changed Expand file tree Collapse file tree 6 files changed +989
-9
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ WORKDIR /app
4040
4141COPY . /app
4242COPY ./docker/php/php.ini /usr/local/etc/php/php.ini
43+ COPY ./docker/php/www.conf /usr/local/etc/php-fpm.d/www.conf
4344
4445RUN chmod +x /app/bin/console
4546RUN chmod +x /app/docker-entrypoint.sh
Original file line number Diff line number Diff line change @@ -75,18 +75,16 @@ COPY --from=composer:2.6.4 /usr/bin/composer /usr/bin/composer
7575# Enable Composer autocompletion
7676RUN composer completion bash > /etc/bash_completion.d/composer
7777
78- # Copy development `php.ini` configuration to container
78+ # Copy development `php.ini` and PHP-FPM pool configuration to container
7979#
80- # Also note that this is mounted within `docker-compose.yml` file, so
80+ # Also note that these files mounted within `docker-compose.yml` file, so
8181# you don't need to build containers again if you change something just
8282# restart containers and you're good
8383COPY ./docker/php/php-dev.ini /usr/local/etc/php/php.ini
84+ COPY ./docker/php/www-dev.conf /usr/local/etc/php-fpm.d/www.conf
8485
8586RUN chmod -R o+s+w /usr/local/etc/php
8687
87- # Enable PHP-FPM status page
88- RUN echo 'pm.status_path = /status' >> /usr/local/etc/php-fpm.d/www.conf
89-
9088RUN curl -s https://api.github.com/repos/fabpot/local-php-security-checker/releases/latest | \
9189 grep -E "browser_download_url(.+)linux_amd64" | \
9290 cut -d : -f 2,3 | \
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ services:
1515 - mariadb
1616 volumes :
1717 - ./:/app:cached
18+ - ./docker/php/php-dev.ini:/usr/local/etc/php/php.ini
19+ - ./docker/php/www-dev.conf:/usr/local/etc/php-fpm.d/www.conf
1820 tmpfs :
1921 - /app/var/:uid=$HOST_UID,gid=$HOST_GID
2022 environment :
Original file line number Diff line number Diff line change 44#
55# If we're starting web-server we need to do following:
66# 0) Basic linting of current JSON configuration file
7- # 1) Copy updated php configuration file, with this we can change php
8- # configuration without rebuilding image
7+ # 1) Export needed environment variables
98# 2) Install all dependencies
109# 3) Generate JWT encryption keys
1110# 4) Create database if it not exists yet
1716make lint-configuration
1817
1918# Step 1
20- cp /app/docker/php/php-dev.ini /usr/local/etc/php/php.ini
21-
2219DOCKER_IP=$( /sbin/ip route| awk ' /default/ { print $3 }' )
2320
2421export DOCKER_IP
You can’t perform that action at this time.
0 commit comments