ini file location:
https://stackoverflow.com/questions/8684609/where-can-i-find-php-ini
<?php phpinfo(); ?>
How to change in php-apache
use above to get location of ini file:
then mount volumne
www:
build: .
ports:
- "8001:80"
volumes:
- ./www:/var/www/html/
- ./php/php.ini:/usr/local/etc/php/php.ini
depends_on:
- db
can copy ini file from
https://hub.docker.com/_/php
https://github.com/php/php-src/blob/master/php.ini-production
No comments:
Post a Comment