medcmu/iteru-php-apache
Images for All Information Technology Section Faculty of Medicine Chiang Mai University
4.7K
Maintained by: MedCMU
Where to get help: the Docker Community Forums, the Docker Community Slack, or Stack Overflow
PHP Extensions
apcu bcmath calendar cgi-fcgi Core ctype curl date dom exif fileinfo filter gd gmagick gmp hash iconv imap intl json libxml mbstring mcrypt memcache mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix Reflection session shmop SimpleXML soap sockets sodium SPL sqlite3 standard sysvsem sysvshm timezonedb tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib redis memcached xdebug
mod_rewrite enable
Include Composer
Docker Compose
web:
container_name: 'web'
image: medcmu/iteru-php-apache
restart: always
ports:
- "8080:80"
volumes:
- /path/to/web:/var/www/html
- /path/to/config/apache2.conf:/etc/apache2/apache2.conf
- /path/to/config/php-xxx.ini:/usr/local/etc/php/php.ini
Docker Run
$ docker run --name some-web -v /path/to/web:/var/www/html -v /path/to/config/apache2.conf:/etc/apache2/apache2.conf -v /path/to/config/php-xxx.ini:/usr/local/etc/php/php.ini -d -p 8080:80 medcmu/iteru-php-apache
EXPOSE
80/tcp
WORKDIR
/var/www/html
mount volumes
/etc/apache2/apache2.conf
/usr/local/etc/php/php.ini
find your php.ini and add this
extension=zip.so
extension=imagick.so
extension=redis.so
docker pull medcmu/iteru-php-apache